mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
384 B
Plaintext
12 lines
384 B
Plaintext
error[E0038]: the trait alias `SelfInput` cannot be made into an object
|
|
--> $DIR/self-in-generics.rs:8:19
|
|
|
|
|
LL | pub fn f(_f: &dyn SelfInput) {}
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: it cannot use `Self` as a type parameter in a supertrait or `where`-clause
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0038`.
|