]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-type-bounds-semantic-fail.stderr
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / test / ui / parser / item-free-type-bounds-semantic-fail.stderr
1 error: free type alias without body
2   --> $DIR/item-free-type-bounds-semantic-fail.rs:4:5
3    |
4 LL |     type A: Ord;
5    |     ^^^^^^^^^^^-
6    |                |
7    |                help: provide a definition for the type: `= <type>;`
8
9 error: bounds on `type`s in this context have no effect
10   --> $DIR/item-free-type-bounds-semantic-fail.rs:4:13
11    |
12 LL |     type A: Ord;
13    |             ^^^
14
15 error: bounds on `type`s in this context have no effect
16   --> $DIR/item-free-type-bounds-semantic-fail.rs:7:13
17    |
18 LL |     type B: Ord = u8;
19    |             ^^^
20
21 error: bounds on `type`s in this context have no effect
22   --> $DIR/item-free-type-bounds-semantic-fail.rs:9:13
23    |
24 LL |     type C: Ord where 'static: 'static = u8;
25    |             ^^^
26
27 error: free type alias without body
28   --> $DIR/item-free-type-bounds-semantic-fail.rs:11:5
29    |
30 LL |     type D<_T>: Ord;
31    |     ^^^^^^^^^^^^^^^-
32    |                    |
33    |                    help: provide a definition for the type: `= <type>;`
34
35 error: bounds on `type`s in this context have no effect
36   --> $DIR/item-free-type-bounds-semantic-fail.rs:11:17
37    |
38 LL |     type D<_T>: Ord;
39    |                 ^^^
40
41 error: bounds on `type`s in this context have no effect
42   --> $DIR/item-free-type-bounds-semantic-fail.rs:14:17
43    |
44 LL |     type E<_T>: Ord = u8;
45    |                 ^^^
46
47 error: bounds on `type`s in this context have no effect
48   --> $DIR/item-free-type-bounds-semantic-fail.rs:17:17
49    |
50 LL |     type F<_T>: Ord where 'static: 'static = u8;
51    |                 ^^^
52
53 error[E0091]: type parameter `_T` is unused
54   --> $DIR/item-free-type-bounds-semantic-fail.rs:14:12
55    |
56 LL |     type E<_T>: Ord = u8;
57    |            ^^ unused type parameter
58
59 error[E0091]: type parameter `_T` is unused
60   --> $DIR/item-free-type-bounds-semantic-fail.rs:17:12
61    |
62 LL |     type F<_T>: Ord where 'static: 'static = u8;
63    |            ^^ unused type parameter
64
65 error: aborting due to 10 previous errors
66
67 For more information about this error, try `rustc --explain E0091`.