Skip to content

Commit b3b6b66

Browse files
committed
OOPS
1 parent da189d9 commit b3b6b66

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
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
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

77
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
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

1313
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
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

1919
error: aborting due to 3 previous errors
2020

0 commit comments

Comments
 (0)