You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: auto-traits like `Send` and `Sync` are traits that have special properties; for more information on them, visit <https://doc.rust-lang.org/reference/special-types-and-traits.html#auto-traits>
57
69
58
70
error[E0224]: at least one trait is required for an object type
59
-
--> $DIR/trait-object-delimiters.rs:8:13
71
+
--> $DIR/trait-object-delimiters.rs:10:13
60
72
|
61
73
LL | fn foo3(_: &dyn {Drop + AsRef<str>}) {}
62
74
| ^^^
63
75
64
76
error[E0225]: only auto traits can be used as additional traits in a trait object
= help: consider creating a new trait with all of these as supertraits and using that trait here instead: `trait NewTrait: Drop + AsRef<str> {}`
73
85
= note: auto-traits like `Send` and `Sync` are traits that have special properties; for more information on them, visit <https://doc.rust-lang.org/reference/special-types-and-traits.html#auto-traits>
74
86
75
-
error: aborting due to 9 previous errors
87
+
error: aborting due to 10 previous errors
76
88
77
89
Some errors have detailed explanations: E0224, E0225.
78
90
For more information about an error, try `rustc --explain E0224`.
0 commit comments