]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gate-fn_must_use.stderr
New upstream version 1.26.2+dfsg1
[rustc.git] / src / test / ui / feature-gate-fn_must_use.stderr
CommitLineData
ff7c6d11
XL
1warning: `#[must_use]` on methods is experimental (see issue #43302)
2 --> $DIR/feature-gate-fn_must_use.rs:16:5
3 |
0531ce1d 4LL | #[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
9warning: `#[must_use]` on functions is experimental (see issue #43302)
10 --> $DIR/feature-gate-fn_must_use.rs:20:1
11 |
0531ce1d 12LL | #[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
17error: compilation successful
18 --> $DIR/feature-gate-fn_must_use.rs:31:1
19 |
0531ce1d 20LL | fn main() {} //~ ERROR compilation successful
ff7c6d11
XL
21 | ^^^^^^^^^^^^
22
0531ce1d
XL
23error: aborting due to previous error
24