]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/track-caller/panic-track-caller.nofeat.stderr
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / ui / async-await / track-caller / panic-track-caller.nofeat.stderr
1 warning: `#[track_caller]` on async functions is a no-op
2   --> $DIR/panic-track-caller.rs:50:1
3    |
4 LL |   #[track_caller]
5    |   ^^^^^^^^^^^^^^^
6 LL | / async fn bar_track_caller() {
7 LL | |     panic!()
8 LL | | }
9    | |_- this function will not propagate the caller location
10    |
11    = note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
12    = help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
13    = note: `#[warn(ungated_async_fn_track_caller)]` on by default
14
15 warning: `#[track_caller]` on async functions is a no-op
16   --> $DIR/panic-track-caller.rs:62:5
17    |
18 LL |       #[track_caller]
19    |       ^^^^^^^^^^^^^^^
20 LL | /     async fn bar_assoc() {
21 LL | |         panic!();
22 LL | |     }
23    | |_____- this function will not propagate the caller location
24    |
25    = note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
26    = help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
27
28 warning: 2 warnings emitted
29