]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/macro/trait-object-macro-matcher.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / parser / macro / trait-object-macro-matcher.stderr
1 error: lifetime in trait object type must be followed by `+`
2 --> $DIR/trait-object-macro-matcher.rs:11:8
3 |
4 LL | m!('static);
5 | ^^^^^^^
6
7 warning: trait objects without an explicit `dyn` are deprecated
8 --> $DIR/trait-object-macro-matcher.rs:11:8
9 |
10 LL | m!('static);
11 | ^^^^^^^ help: use `dyn`: `dyn 'static`
12 |
13 = note: `#[warn(bare_trait_objects)]` on by default
14 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
15 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
16
17 error[E0224]: at least one trait is required for an object type
18 --> $DIR/trait-object-macro-matcher.rs:11:8
19 |
20 LL | m!('static);
21 | ^^^^^^^
22
23 error: aborting due to 2 previous errors; 1 warning emitted
24
25 For more information about this error, try `rustc --explain E0224`.