forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trait-object-lifetime-parens: improve recovery.
- Loading branch information
Showing
5 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 18 additions & 4 deletions
22
src/test/ui/parser/macro/trait-object-macro-matcher.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
error: expected type, found `'static` | ||
--> $DIR/trait-object-macro-matcher.rs:9:8 | ||
error: lifetime in trait object type must be followed by `+` | ||
--> $DIR/trait-object-macro-matcher.rs:11:8 | ||
| | ||
LL | m!('static); | ||
| ^^^^^^^ expected type | ||
| ^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
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 | ||
|
||
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 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters