]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | warning: `#[must_use]` on methods is experimental (see issue #43302) |
2 | --> $DIR/feature-gate-fn_must_use.rs:16:5 | |
3 | | | |
0531ce1d | 4 | LL | #[must_use] //~ WARN `#[must_use]` on methods is experimental |
ff7c6d11 XL |
5 | | ^^^^^^^^^^^ |
6 | | | |
7 | = help: add #![feature(fn_must_use)] to the crate attributes to enable | |
8 | ||
9 | warning: `#[must_use]` on functions is experimental (see issue #43302) | |
10 | --> $DIR/feature-gate-fn_must_use.rs:20:1 | |
11 | | | |
0531ce1d | 12 | LL | #[must_use] //~ WARN `#[must_use]` on functions is experimental |
ff7c6d11 XL |
13 | | ^^^^^^^^^^^ |
14 | | | |
15 | = help: add #![feature(fn_must_use)] to the crate attributes to enable | |
16 | ||
17 | error: compilation successful | |
18 | --> $DIR/feature-gate-fn_must_use.rs:31:1 | |
19 | | | |
0531ce1d | 20 | LL | fn main() {} //~ ERROR compilation successful |
ff7c6d11 XL |
21 | | ^^^^^^^^^^^^ |
22 | ||
0531ce1d XL |
23 | error: aborting due to previous error |
24 |