]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-optimize_attribute.stderr
Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow...
[rust.git] / tests / ui / feature-gates / feature-gate-optimize_attribute.stderr
1 error[E0658]: the `#[optimize]` attribute is an experimental feature
2   --> $DIR/feature-gate-optimize_attribute.rs:7:1
3    |
4 LL | #[optimize(size)]
5    | ^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information
8    = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
9
10 error[E0658]: the `#[optimize]` attribute is an experimental feature
11   --> $DIR/feature-gate-optimize_attribute.rs:10:1
12    |
13 LL | #[optimize(speed)]
14    | ^^^^^^^^^^^^^^^^^^
15    |
16    = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information
17    = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
18
19 error[E0658]: the `#[optimize]` attribute is an experimental feature
20   --> $DIR/feature-gate-optimize_attribute.rs:13:1
21    |
22 LL | #[optimize(banana)]
23    | ^^^^^^^^^^^^^^^^^^^
24    |
25    = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information
26    = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
27
28 error[E0658]: the `#[optimize]` attribute is an experimental feature
29   --> $DIR/feature-gate-optimize_attribute.rs:4:1
30    |
31 LL | #[optimize(size)]
32    | ^^^^^^^^^^^^^^^^^
33    |
34    = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information
35    = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
36
37 error[E0658]: the `#[optimize]` attribute is an experimental feature
38   --> $DIR/feature-gate-optimize_attribute.rs:2:1
39    |
40 LL | #![optimize(speed)]
41    | ^^^^^^^^^^^^^^^^^^^
42    |
43    = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information
44    = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
45
46 error[E0722]: invalid argument
47   --> $DIR/feature-gate-optimize_attribute.rs:13:12
48    |
49 LL | #[optimize(banana)]
50    |            ^^^^^^
51
52 error: aborting due to 6 previous errors
53
54 Some errors have detailed explanations: E0658, E0722.
55 For more information about an error, try `rustc --explain E0658`.