File tree 1 file changed +9
-9
lines changed
src/test/ui/const-generics/defaults
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
error[E0735]: generic parameters cannot use `Self` in their defaults
2
- --> $DIR/default-const-param-cannot-reference-self.rs:3:36
2
+ --> $DIR/default-const-param-cannot-reference-self.rs:3:34
3
3
|
4
- LL | struct Snobound <const N: usize = { Self; 10 }>;
5
- | ^^^^ `Self` in generic parameter default
4
+ LL | struct Struct <const N: usize = { Self; 10 }>;
5
+ | ^^^^ `Self` in generic parameter default
6
6
7
7
error[E0735]: generic parameters cannot use `Self` in their defaults
8
- --> $DIR/default-const-param-cannot-reference-self.rs:6:34
8
+ --> $DIR/default-const-param-cannot-reference-self.rs:6:30
9
9
|
10
- LL | enum Enobound <const N: usize = { Self; 10 }> { }
11
- | ^^^^ `Self` in generic parameter default
10
+ LL | enum Enum <const N: usize = { Self; 10 }> { }
11
+ | ^^^^ `Self` in generic parameter default
12
12
13
13
error[E0735]: generic parameters cannot use `Self` in their defaults
14
- --> $DIR/default-const-param-cannot-reference-self.rs:9:35
14
+ --> $DIR/default-const-param-cannot-reference-self.rs:9:32
15
15
|
16
- LL | union Unobound <const N: usize = { Self; 10 }> { not_empty: () }
17
- | ^^^^ `Self` in generic parameter default
16
+ LL | union Union <const N: usize = { Self; 10 }> { not_empty: () }
17
+ | ^^^^ `Self` in generic parameter default
18
18
19
19
error: aborting due to 3 previous errors
20
20
You can’t perform that action at this time.
0 commit comments