|
| 1 | +error[E0658]: use of unstable library feature `contracts` |
| 2 | + --> $DIR/attribute-affected-trait-bound-issue-137129.rs:1:4 |
| 3 | + | |
| 4 | +LL | #![core::contracts::ensures] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #128044 <https://github.com/rust-lang/rust/issues/128044> for more information |
| 8 | + = help: add `#![feature(contracts)]` 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 |
| 10 | + |
| 11 | +error[E0658]: inner macro attributes are unstable |
| 12 | + --> $DIR/attribute-affected-trait-bound-issue-137129.rs:1:4 |
| 13 | + | |
| 14 | +LL | #![core::contracts::ensures] |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 16 | + | |
| 17 | + = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information |
| 18 | + = help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable |
| 19 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 20 | + |
| 21 | +error[E0404]: expected trait, found struct `A` |
| 22 | + --> $DIR/attribute-affected-trait-bound-issue-137129.rs:1:1 |
| 23 | + | |
| 24 | +LL | / #![core::contracts::ensures] |
| 25 | +... | |
| 26 | +LL | | fn main(){} |
| 27 | + | |___________^ not a trait |
| 28 | + | |
| 29 | +help: `+` is used to constrain a "trait object" type with lifetimes or auto-traits; structs and enums can't be bound in that way |
| 30 | + |
| 31 | +error[E0658]: `#[prelude_import]` is for use by rustc only |
| 32 | + --> $DIR/attribute-affected-trait-bound-issue-137129.rs:1:1 |
| 33 | + | |
| 34 | +LL | / #![core::contracts::ensures] |
| 35 | +... | |
| 36 | +LL | | fn main(){} |
| 37 | + | |___________^ |
| 38 | + | |
| 39 | + = help: add `#![feature(prelude_import)]` to the crate attributes to enable |
| 40 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 41 | + |
| 42 | +error: aborting due to 4 previous errors |
| 43 | + |
| 44 | +Some errors have detailed explanations: E0404, E0658. |
| 45 | +For more information about an error, try `rustc --explain E0404`. |
0 commit comments