fork/rust

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

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

master
1.2 KiB44 linesraw
1error: bounds on `type`s in this context have no effect
2  --> $DIR/issue-83479.rs:3:24
3   |
4LL |   type PairCoupledTypes: Trait<
5   |  ________________________^
6LL | |
7LL | |
8LL | |     [u32; {
9LL | |         static FOO: usize;
10LL | |     }],
11LL | | > = impl Trait<
12   | |_^
13
14error: free static item without body
15  --> $DIR/issue-83479.rs:7:9
16   |
17LL |         static FOO: usize;
18   |         ^^^^^^^^^^^^^^^^^-
19   |                          |
20   |                          help: provide a definition for the static: `= <expr>;`
21
22error: free static item without body
23  --> $DIR/issue-83479.rs:12:9
24   |
25LL |         static FOO: usize;
26   |         ^^^^^^^^^^^^^^^^^-
27   |                          |
28   |                          help: provide a definition for the static: `= <expr>;`
29
30error[E0405]: cannot find trait `Trait` in this scope
31  --> $DIR/issue-83479.rs:3:24
32   |
33LL | type PairCoupledTypes: Trait<
34   |                        ^^^^^ not found in this scope
35
36error[E0405]: cannot find trait `Trait` in this scope
37  --> $DIR/issue-83479.rs:9:10
38   |
39LL | > = impl Trait<
40   |          ^^^^^ not found in this scope
41
42error: aborting due to 5 previous errors
43
44For more information about this error, try `rustc --explain E0405`.