]> git.lizzy.rs Git - rust.git/blob - src/test/ui/maybe-bounds.stderr
Include parens to type parameter
[rust.git] / src / test / ui / maybe-bounds.stderr
1 error: `?Trait` is not permitted in supertraits
2   --> $DIR/maybe-bounds.rs:11:11
3    |
4 LL | trait Tr: ?Sized {} //~ ERROR `?Trait` is not permitted in supertraits
5    |           ^^^^^^
6    |
7    = note: traits are `?Sized` by default
8
9 error: `?Trait` is not permitted in trait object types
10   --> $DIR/maybe-bounds.rs:13:16
11    |
12 LL | type A1 = Tr + ?Sized; //~ ERROR `?Trait` is not permitted in trait object types
13    |                ^^^^^^
14
15 error: `?Trait` is not permitted in trait object types
16   --> $DIR/maybe-bounds.rs:14:24
17    |
18 LL | type A2 = for<'a> Tr + ?Sized; //~ ERROR `?Trait` is not permitted in trait object types
19    |                        ^^^^^^
20
21 error: aborting due to 3 previous errors
22