blob: 230d11fd0ae66fcadaa5a67b224c7db473ff7823 [file] [log] [blame]
Bryanskiy2a735532024-02-23 13:39:571error[E0658]: `?Trait` is not permitted in supertraits
Mark Rousskov2a663552018-12-25 15:56:472 --> $DIR/maybe-bounds.rs:1:11
Vadim Petrochenkovd4e51a82017-12-10 19:47:553 |
Vadim Petrochenkovfa72a812019-03-09 12:03:444LL | trait Tr: ?Sized {}
Seiichi Uchida78a19d92018-04-27 08:32:545 | ^^^^^^
Vadim Petrochenkovd4e51a82017-12-10 19:47:556 |
7 = note: traits are `?Sized` by default
Bryanskiy2a735532024-02-23 13:39:578 = help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable
9 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
Vadim Petrochenkovd4e51a82017-12-10 19:47:5510
Bryanskiy2a735532024-02-23 13:39:5711error[E0658]: `?Trait` is not permitted in trait object types
Alexander Regueiroce75a232019-05-19 21:26:4212 --> $DIR/maybe-bounds.rs:4:20
13 |
14LL | type A1 = dyn Tr + (?Sized);
15 | ^^^^^^^^
Bryanskiy2a735532024-02-23 13:39:5716 |
17 = help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable
18 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
Alexander Regueiroce75a232019-05-19 21:26:4219
Bryanskiy2a735532024-02-23 13:39:5720error[E0658]: `?Trait` is not permitted in trait object types
Alexander Regueiroce75a232019-05-19 21:26:4221 --> $DIR/maybe-bounds.rs:6:28
22 |
23LL | type A2 = dyn for<'a> Tr + (?Sized);
24 | ^^^^^^^^
Bryanskiy2a735532024-02-23 13:39:5725 |
26 = help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable
27 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
Alexander Regueiroce75a232019-05-19 21:26:4228
29error: aborting due to 3 previous errors
Vadim Petrochenkovd4e51a82017-12-10 19:47:5530
Bryanskiy2a735532024-02-23 13:39:5731For more information about this error, try `rustc --explain E0658`.