fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
691 B23 linesraw
1error: lifetime in trait object type must be followed by `+`
2  --> $DIR/trait-object-macro-matcher.rs:11:8
3   |
4LL |     m!('static);
5   |        ^^^^^^^
6
7warning: trait objects without an explicit `dyn` are deprecated
8  --> $DIR/trait-object-macro-matcher.rs:11:8
9   |
10LL |     m!('static);
11   |        ^^^^^^^ help: use `dyn`: `dyn 'static`
12   |
13   = note: `#[warn(bare_trait_objects)]` on by default
14
15error[E0224]: at least one trait is required for an object type
16  --> $DIR/trait-object-macro-matcher.rs:11:8
17   |
18LL |     m!('static);
19   |        ^^^^^^^
20
21error: aborting due to 2 previous errors; 1 warning emitted
22
23For more information about this error, try `rustc --explain E0224`.