2021-03-18 03:02:44 +03:00
|
|
|
error[E0223]: ambiguous associated type
|
2021-04-16 11:06:51 +02:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:23:12
|
2021-03-18 03:02:44 +03: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-15 17:16:21 +02:00
|
|
|
= warning: this is valid in the current edition (Rust 2015) but is not accepted in the Rust 2021 edition!
|
2021-04-16 11:06:51 +02:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
2021-03-18 03:02:44 +03:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
2021-04-16 11:06:51 +02:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:17:5
|
2021-03-18 03:02:44 +03:00
|
|
|
|
|
|
|
|
LL | ::Dyn::func();
|
|
|
|
| ^^^^^ help: use `dyn`: `<dyn (::Dyn)>`
|
2021-04-16 11:06:51 +02:00
|
|
|
|
|
2021-06-15 17:16:21 +02:00
|
|
|
= warning: this is valid in the current edition (Rust 2015) but is not accepted in the Rust 2021 edition!
|
2021-04-16 11:06:51 +02:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
2021-03-18 03:02:44 +03:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
2021-04-16 11:06:51 +02:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:20:5
|
2021-03-18 03:02:44 +03:00
|
|
|
|
|
|
|
|
LL | Dyn::CONST;
|
|
|
|
| ^^^ help: use `dyn`: `<dyn Dyn>`
|
2021-04-16 11:06:51 +02:00
|
|
|
|
|
2021-06-15 17:16:21 +02:00
|
|
|
= warning: this is valid in the current edition (Rust 2015) but is not accepted in the Rust 2021 edition!
|
2021-04-16 11:06:51 +02:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
2021-03-18 03:02:44 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error; 3 warnings emitted
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0223`.
|