Skip to content

Commit 036a373

Browse files
committed
Update ui tests with 2021-edition diagnostics
1 parent 059aafd commit 036a373

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/ui/bare-trait-object.stderr

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
error: trait objects without an explicit `dyn` are deprecated
1+
error[E0782]: trait objects must include the `dyn` keyword
22
--> tests/ui/bare-trait-object.rs:11:16
33
|
44
11 | impl Trait for Send + Sync {
55
| ^^^^^^^^^^^
66
|
7-
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
8-
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9-
note: the lint level is defined here
10-
--> tests/ui/bare-trait-object.rs:1:9
11-
|
12-
1 | #![deny(bare_trait_objects)]
13-
| ^^^^^^^^^^^^^^^^^^
14-
help: use `dyn`
7+
help: add `dyn` keyword before this trait
158
|
169
11 | impl Trait for dyn Send + Sync {
1710
| +++

0 commit comments

Comments
 (0)