fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
916 B21 linesraw
1error[E0735]: generic parameters cannot use `Self` in their defaults
2  --> $DIR/default-const-param-cannot-reference-self.rs:1:34
3   |
4LL | struct Struct<const N: usize = { Self; 10 }>;
5   |                                  ^^^^ `Self` in generic parameter default
6
7error[E0735]: generic parameters cannot use `Self` in their defaults
8  --> $DIR/default-const-param-cannot-reference-self.rs:4:30
9   |
10LL | enum Enum<const N: usize = { Self; 10 }> { }
11   |                              ^^^^ `Self` in generic parameter default
12
13error[E0735]: generic parameters cannot use `Self` in their defaults
14  --> $DIR/default-const-param-cannot-reference-self.rs:7:32
15   |
16LL | union Union<const N: usize = { Self; 10 }> { not_empty: () }
17   |                                ^^^^ `Self` in generic parameter default
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0735`.