mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-28 11:38:01 +00:00
In order to expose edition dependent divergences in some tests in the test suite, add explicit `edition` annotations. Some of these tests might require additional work to *avoid* the divergences, as they might have been unintentional. These are not exhaustive changes, purely opportunistic while looking at something else.
27 lines
768 B
Plaintext
27 lines
768 B
Plaintext
error: expected identifier, found keyword `dyn`
|
|
--> $DIR/dyn-use.rs:4:4
|
|
|
|
|
LL | fn dyn() -> &'static dyn use<> { &() }
|
|
| ^^^ expected identifier, found keyword
|
|
|
|
|
help: escape `dyn` to use it as an identifier
|
|
|
|
|
LL | fn r#dyn() -> &'static dyn use<> { &() }
|
|
| ++
|
|
|
|
error: `use<...>` precise capturing syntax not allowed in `dyn` trait object bounds
|
|
--> $DIR/dyn-use.rs:4:26
|
|
|
|
|
LL | fn dyn() -> &'static dyn use<> { &() }
|
|
| ^^^^^
|
|
|
|
error[E0224]: at least one trait is required for an object type
|
|
--> $DIR/dyn-use.rs:4:22
|
|
|
|
|
LL | fn dyn() -> &'static dyn use<> { &() }
|
|
| ^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0224`.
|