2021-07-10 03:00:54 -05:00
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/bare-trait-objects-path.rs:23:12
|
|
|
|
|
|
|
|
|
LL | let _: Dyn::Ty;
|
2021-11-01 04:01:42 -05:00
|
|
|
| ^^^
|
2021-07-10 03:00:54 -05:00
|
|
|
|
|
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(bare_trait_objects)]` on by default
|
2021-11-01 04:01:42 -05:00
|
|
|
help: use `dyn`
|
|
|
|
|
|
|
|
|
LL | let _: <dyn Dyn>::Ty;
|
|
|
|
| ++++ +
|
2021-07-10 03:00:54 -05:00
|
|
|
|
2021-03-17 19:02:44 -05:00
|
|
|
error[E0223]: ambiguous associated type
|
2021-04-16 04:06:51 -05:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:23:12
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
|
|
|
LL | let _: Dyn::Ty;
|
2023-01-08 00:54:52 -06:00
|
|
|
| ^^^^^^^ help: use the fully-qualified path: `<dyn Dyn as Assoc>::Ty`
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/bare-trait-objects-path.rs:14:5
|
|
|
|
|
|
|
|
|
LL | Dyn::func();
|
2021-11-01 04:01:42 -05:00
|
|
|
| ^^^
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2021-11-01 04:01:42 -05:00
|
|
|
help: use `dyn`
|
|
|
|
|
|
|
|
|
LL | <dyn Dyn>::func();
|
|
|
|
| ++++ +
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
2021-04-16 04:06:51 -05:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:17:5
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
|
|
|
LL | ::Dyn::func();
|
2021-11-01 04:01:42 -05:00
|
|
|
| ^^^^^
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2021-11-01 04:01:42 -05:00
|
|
|
help: use `dyn`
|
|
|
|
|
|
|
|
|
LL | <dyn (::Dyn)>::func();
|
|
|
|
| ++++++ ++
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
2021-04-16 04:06:51 -05:00
|
|
|
--> $DIR/bare-trait-objects-path.rs:20:5
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
|
|
|
LL | Dyn::CONST;
|
2021-11-01 04:01:42 -05:00
|
|
|
| ^^^
|
2021-04-16 04:06:51 -05:00
|
|
|
|
|
2021-06-16 07:27:44 -05:00
|
|
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
2021-08-09 10:45:01 -05:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2021-11-01 04:01:42 -05:00
|
|
|
help: use `dyn`
|
|
|
|
|
|
|
|
|
LL | <dyn Dyn>::CONST;
|
|
|
|
| ++++ +
|
2021-03-17 19:02:44 -05:00
|
|
|
|
2021-07-10 03:00:54 -05:00
|
|
|
error: aborting due to previous error; 4 warnings emitted
|
2021-03-17 19:02:44 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0223`.
|