]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0393.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0393.stderr
1 error[E0393]: the type parameter `T` must be explicitly specified
2   --> $DIR/E0393.rs:3:47
3    |
4 LL | trait A<T=Self> {}
5    | ------------------ type parameter `T` must be specified for this
6 LL | 
7 LL | fn together_we_will_rule_the_galaxy(son: &dyn A) {}
8    |                                               ^ help: set the type parameter to the desired type: `A<T>`
9    |
10    = note: because of the default `Self` reference, type parameters must be specified on object types
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0393`.