2021-03-18 00:02:44 +00:00
|
|
|
error[E0223]: ambiguous associated type
|
2021-04-16 09:06:51 +00:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:23:12
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
|
LL | let _: Dyn::Ty;
|
|
|
|
| ^^^^^^^ help: use fully-qualified syntax: `<dyn Dyn as Trait>::Ty`
|
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/bare-trait-objects-path.rs:14:5
|
|
|
|
|
|
|
|
|
LL | Dyn::func();
|
|
|
|
| ^^^ help: use `dyn`: `<dyn Dyn>`
|
|
|
|
|
|
|
|
|
= note: `#[warn(bare_trait_objects)]` on by default
|
2021-06-16 12:27:44 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-04-16 09:06:51 +00:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
2021-04-16 09:06:51 +00:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:17:5
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
|
LL | ::Dyn::func();
|
|
|
|
| ^^^^^ help: use `dyn`: `<dyn (::Dyn)>`
|
2021-04-16 09:06:51 +00:00
|
|
|
|
|
2021-06-16 12:27:44 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-04-16 09:06:51 +00:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
2021-04-16 09:06:51 +00:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:20:5
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
|
LL | Dyn::CONST;
|
|
|
|
| ^^^ help: use `dyn`: `<dyn Dyn>`
|
2021-04-16 09:06:51 +00:00
|
|
|
|
|
2021-06-16 12:27:44 +00:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-04-16 09:06:51 +00:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error; 3 warnings emitted
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0223`.
|