]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2091-track-caller/only-for-fns.stderr
Merge branch 'master' into rusty-hermit
[rust.git] / src / test / ui / rfc-2091-track-caller / only-for-fns.stderr
1 warning: the feature `track_caller` is incomplete and may cause the compiler to crash
2   --> $DIR/only-for-fns.rs:1:12
3    |
4 LL | #![feature(track_caller)]
5    |            ^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8
9 error[E0739]: attribute should be applied to function
10   --> $DIR/only-for-fns.rs:3:1
11    |
12 LL | #[track_caller]
13    | ^^^^^^^^^^^^^^^
14 LL | struct S;
15    | --------- not a function
16
17 error: aborting due to previous error
18