File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/test/ui/const-generics/defaults Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11error[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
33 |
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
66
77error[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
99 |
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
1212
1313error[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
1515 |
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
1818
1919error: aborting due to 3 previous errors
2020
You can’t perform that action at this time.
0 commit comments