Bryanskiy | 2a73553 | 2024-02-23 13:39:57 | [diff] [blame] | 1 | error[E0658]: `?Trait` is not permitted in supertraits |
Mark Rousskov | 2a66355 | 2018-12-25 15:56:47 | [diff] [blame] | 2 | --> $DIR/maybe-bounds.rs:1:11 |
Vadim Petrochenkov | d4e51a8 | 2017-12-10 19:47:55 | [diff] [blame] | 3 | | |
Vadim Petrochenkov | fa72a81 | 2019-03-09 12:03:44 | [diff] [blame] | 4 | LL | trait Tr: ?Sized {} |
Seiichi Uchida | 78a19d9 | 2018-04-27 08:32:54 | [diff] [blame] | 5 | | ^^^^^^ |
Vadim Petrochenkov | d4e51a8 | 2017-12-10 19:47:55 | [diff] [blame] | 6 | | |
| 7 | = note: traits are `?Sized` by default |
Bryanskiy | 2a73553 | 2024-02-23 13:39:57 | [diff] [blame] | 8 | = 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 Petrochenkov | d4e51a8 | 2017-12-10 19:47:55 | [diff] [blame] | 10 | |
Bryanskiy | 2a73553 | 2024-02-23 13:39:57 | [diff] [blame] | 11 | error[E0658]: `?Trait` is not permitted in trait object types |
Alexander Regueiro | ce75a23 | 2019-05-19 21:26:42 | [diff] [blame] | 12 | --> $DIR/maybe-bounds.rs:4:20 |
| 13 | | |
| 14 | LL | type A1 = dyn Tr + (?Sized); |
| 15 | | ^^^^^^^^ |
Bryanskiy | 2a73553 | 2024-02-23 13:39:57 | [diff] [blame] | 16 | | |
| 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 Regueiro | ce75a23 | 2019-05-19 21:26:42 | [diff] [blame] | 19 | |
Bryanskiy | 2a73553 | 2024-02-23 13:39:57 | [diff] [blame] | 20 | error[E0658]: `?Trait` is not permitted in trait object types |
Alexander Regueiro | ce75a23 | 2019-05-19 21:26:42 | [diff] [blame] | 21 | --> $DIR/maybe-bounds.rs:6:28 |
| 22 | | |
| 23 | LL | type A2 = dyn for<'a> Tr + (?Sized); |
| 24 | | ^^^^^^^^ |
Bryanskiy | 2a73553 | 2024-02-23 13:39:57 | [diff] [blame] | 25 | | |
| 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 Regueiro | ce75a23 | 2019-05-19 21:26:42 | [diff] [blame] | 28 | |
| 29 | error: aborting due to 3 previous errors |
Vadim Petrochenkov | d4e51a8 | 2017-12-10 19:47:55 | [diff] [blame] | 30 | |
Bryanskiy | 2a73553 | 2024-02-23 13:39:57 | [diff] [blame] | 31 | For more information about this error, try `rustc --explain E0658`. |