]> git.lizzy.rs Git - rust.git/blob - src/test/ui/maybe-bounds.stderr
Rollup merge of #48381 - GuillaumeGomez:rustdoc-theme-securities, r=QuietMisdreavus
[rust.git] / src / test / ui / maybe-bounds.stderr
1 error: `?Trait` is not permitted in supertraits
2   --> $DIR/maybe-bounds.rs:11:12
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:17
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:25
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