|
| 1 | +error[E0658]: use of unstable library feature `contracts` |
| 2 | + --> $DIR/invalid-delimeter-ice-146808.rs:1:4 |
| 3 | + | |
| 4 | +LL | #![core::contracts::requires] |
| 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/invalid-delimeter-ice-146808.rs:1:4 |
| 13 | + | |
| 14 | +LL | #![core::contracts::requires] |
| 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: wrong meta list delimiters |
| 22 | + --> $DIR/invalid-delimeter-ice-146808.rs:1:1 |
| 23 | + | |
| 24 | +LL | / #![core::contracts::requires] |
| 25 | +... | |
| 26 | +LL | | #[allow{}] |
| 27 | +LL | | fn main() {} |
| 28 | + | |____________^ help: the delimiters should be `(` and `)`: `(...)` |
| 29 | + |
| 30 | +error[E0658]: `#[prelude_import]` is for use by rustc only |
| 31 | + --> $DIR/invalid-delimeter-ice-146808.rs:1:1 |
| 32 | + | |
| 33 | +LL | / #![core::contracts::requires] |
| 34 | +... | |
| 35 | +LL | | #[allow{}] |
| 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[E0308]: mismatched types |
| 43 | + --> $DIR/invalid-delimeter-ice-146808.rs:1:1 |
| 44 | + | |
| 45 | +LL | #![core::contracts::requires] |
| 46 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()` |
| 47 | + |
| 48 | +error: aborting due to 5 previous errors |
| 49 | + |
| 50 | +Some errors have detailed explanations: E0308, E0658. |
| 51 | +For more information about an error, try `rustc --explain E0308`. |
0 commit comments