]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-closure_track_caller.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-closure_track_caller.stderr
1 error[E0658]: `#[track_caller]` on closures is currently unstable
2   --> $DIR/feature-gate-closure_track_caller.rs:5:20
3    |
4 LL |     let _closure = #[track_caller] || {};
5    |                    ^^^^^^^^^^^^^^^
6    |
7    = note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
8    = help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
9
10 error[E0658]: `#[track_caller]` on closures is currently unstable
11   --> $DIR/feature-gate-closure_track_caller.rs:6:22
12    |
13 LL |     let _generator = #[track_caller] || { yield; };
14    |                      ^^^^^^^^^^^^^^^
15    |
16    = note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
17    = help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0658`.