2020-03-07 06:52:55 -06:00
|
|
|
error: lifetime in trait object type must be followed by `+`
|
|
|
|
--> $DIR/trait-object-macro-matcher.rs:11:8
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | m!('static);
|
2020-03-07 06:52:55 -06:00
|
|
|
| ^^^^^^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-03-07 06:52:55 -06:00
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/trait-object-macro-matcher.rs:11:8
|
|
|
|
|
|
|
|
|
LL | m!('static);
|
|
|
|
| ^^^^^^^ help: use `dyn`: `dyn 'static`
|
|
|
|
|
|
|
|
|
= note: `#[warn(bare_trait_objects)]` on by default
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2020-03-07 06:52:55 -06:00
|
|
|
|
|
|
|
error[E0224]: at least one trait is required for an object type
|
|
|
|
--> $DIR/trait-object-macro-matcher.rs:11:8
|
|
|
|
|
|
|
|
|
LL | m!('static);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2020-03-11 10:30:09 -05:00
|
|
|
error: aborting due to 2 previous errors; 1 warning emitted
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-03-21 10:43:12 -05:00
|
|
|
For more information about this error, try `rustc --explain E0224`.
|