Skip to content

Commit f39fb70

Browse files
committed
Update tests after fixing ICEs
1 parent 379a057 commit f39fb70

File tree

5 files changed

+30
-23
lines changed

5 files changed

+30
-23
lines changed

tests/crashes/129209.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/crashes/131295.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/crashes/139738.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
impl<const A: i32 = { || [0; B] }> Tr {}
2+
//~^ ERROR cannot find type `Tr`
3+
//~| ERROR cannot find value `B`
4+
//~| ERROR defaults for generic parameters are not allowed here
5+
6+
fn main() {}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
error[E0412]: cannot find type `Tr` in this scope
2+
--> $DIR/parent_generics_of_nested_in_default.rs:1:36
3+
|
4+
LL | impl<const A: i32 = { || [0; B] }> Tr {}
5+
| ^^ not found in this scope
6+
7+
error[E0425]: cannot find value `B` in this scope
8+
--> $DIR/parent_generics_of_nested_in_default.rs:1:30
9+
|
10+
LL | impl<const A: i32 = { || [0; B] }> Tr {}
11+
| - ^ help: a const parameter with a similar name exists: `A`
12+
| |
13+
| similarly named const parameter `A` defined here
14+
15+
error: defaults for generic parameters are not allowed here
16+
--> $DIR/parent_generics_of_nested_in_default.rs:1:6
17+
|
18+
LL | impl<const A: i32 = { || [0; B] }> Tr {}
19+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20+
21+
error: aborting due to 3 previous errors
22+
23+
Some errors have detailed explanations: E0412, E0425.
24+
For more information about an error, try `rustc --explain E0412`.

0 commit comments

Comments
 (0)