2021-07-10 08:00:54 +00: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 09:01:42 +00:00
|
|
|
| ^^^
|
2021-07-10 08:00:54 +00: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 15:55:36 +00:00
|
|
|
= note: `#[warn(bare_trait_objects)]` on by default
|
2024-01-20 08:41:56 +00:00
|
|
|
help: if this is an object-safe trait, use `dyn`
|
2021-11-01 09:01:42 +00:00
|
|
|
|
|
|
|
|
LL | let _: <dyn Dyn>::Ty;
|
|
|
|
| ++++ +
|
2021-07-10 08:00:54 +00:00
|
|
|
|
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;
|
2023-10-16 18:25:11 +00:00
|
|
|
| ^^^^^^^ help: use fully-qualified syntax: `<dyn Dyn as Assoc>::Ty`
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
warning: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/bare-trait-objects-path.rs:14:5
|
|
|
|
|
|
|
|
|
LL | Dyn::func();
|
2021-11-01 09:01:42 +00:00
|
|
|
| ^^^
|
2021-03-18 00:02:44 +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-08-09 15:45:01 +00:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2024-01-20 08:41:56 +00:00
|
|
|
help: if this is an object-safe trait, use `dyn`
|
2021-11-01 09:01:42 +00:00
|
|
|
|
|
|
|
|
LL | <dyn Dyn>::func();
|
|
|
|
| ++++ +
|
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();
|
2021-11-01 09:01:42 +00:00
|
|
|
| ^^^^^
|
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-08-09 15:45:01 +00:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2024-01-20 08:41:56 +00:00
|
|
|
help: if this is an object-safe trait, use `dyn`
|
2021-11-01 09:01:42 +00:00
|
|
|
|
|
|
|
|
LL | <dyn (::Dyn)>::func();
|
|
|
|
| ++++++ ++
|
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;
|
2021-11-01 09:01:42 +00:00
|
|
|
| ^^^
|
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-08-09 15:45:01 +00:00
|
|
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
2024-01-20 08:41:56 +00:00
|
|
|
help: if this is an object-safe trait, use `dyn`
|
2021-11-01 09:01:42 +00:00
|
|
|
|
|
|
|
|
LL | <dyn Dyn>::CONST;
|
|
|
|
| ++++ +
|
2021-03-18 00:02:44 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error; 4 warnings emitted
|
2021-03-18 00:02:44 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0223`.
|