-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create anon const defs in
DefCollector
unconditionally
- Loading branch information
Showing
12 changed files
with
154 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/ui/const-generics/early/const-arg-empty-macro-expansion-2.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
impl<T> | ||
Foo< | ||
//~^ ERROR: cannot find type `Foo` in this scope | ||
T, | ||
{ | ||
thread_local! { pub static FOO : Foo = Foo { } ; } | ||
//~^ ERROR: cannot find type `Foo` in this scope | ||
//~| ERROR: cannot find type `Foo` in this scope | ||
//~| ERROR: cannot find type `Foo` in this scope | ||
//~| ERROR: cannot find type `Foo` in this scope | ||
//~| ERROR: cannot find type `Foo` in this scope | ||
//~| ERROR: cannot find struct, variant or union type `Foo` in this scope | ||
}, | ||
> | ||
{ | ||
} | ||
|
||
fn main() {} |
Oops, something went wrong.