rust/tests/ui/lint/bare-trait-objects-path.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
2.3 KiB
Plaintext
Raw Normal View History

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
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
error[E0223]: ambiguous associated type
2021-04-16 09:06:51 +00:00
--> $DIR/bare-trait-objects-path.rs:23:12
|
LL | let _: Dyn::Ty;
2023-10-16 18:25:11 +00:00
| ^^^^^^^ help: use fully-qualified syntax: `<dyn Dyn as Assoc>::Ty`
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-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!
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: if this is an object-safe trait, use `dyn`
2021-11-01 09:01:42 +00:00
|
LL | <dyn Dyn>::func();
| ++++ +
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
|
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!
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: if this is an object-safe trait, use `dyn`
2021-11-01 09:01:42 +00:00
|
LL | <dyn (::Dyn)>::func();
| ++++++ ++
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
|
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!
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: if this is an object-safe trait, use `dyn`
2021-11-01 09:01:42 +00:00
|
LL | <dyn Dyn>::CONST;
| ++++ +
error: aborting due to 1 previous error; 4 warnings emitted
For more information about this error, try `rustc --explain E0223`.