
Notes about tests: - tests/ui/parser/macro/trait-object-macro-matcher.rs: the syntax error is duplicated, because it occurs now when parsing the decl macro input, and also when parsing the expanded decl macro. But this won't show up for normal users due to error de-duplication. - tests/ui/associated-consts/issue-93835.rs: similar, plus there are some additional errors about this very broken code. - The changes to metavariable descriptions in #132629 are now visible in error message for several tests.
23 lines
662 B
Text
23 lines
662 B
Text
error: lifetime in trait object type must be followed by `+`
|
|
--> $DIR/trait-object-macro-matcher.rs:11:8
|
|
|
|
|
LL | m!('static);
|
|
| ^^^^^^^
|
|
|
|
error: lifetime in trait object type must be followed by `+`
|
|
--> $DIR/trait-object-macro-matcher.rs:11:8
|
|
|
|
|
LL | m!('static);
|
|
| ^^^^^^^
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error[E0224]: at least one trait is required for an object type
|
|
--> $DIR/trait-object-macro-matcher.rs:11:8
|
|
|
|
|
LL | m!('static);
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0224`.
|