]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | error[E0107]: missing generics for trait `IntoCow` |
2 | --> $DIR/ufcs-qpath-missing-params.rs:14:16 | |
b7449926 XL |
3 | | |
4 | LL | <String as IntoCow>::into_cow("foo".to_string()); | |
17df50a5 | 5 | | ^^^^^^^ expected 1 generic argument |
5869c6ff | 6 | | |
17df50a5 | 7 | note: trait defined here, with 1 generic parameter: `B` |
5869c6ff XL |
8 | --> $DIR/ufcs-qpath-missing-params.rs:3:11 |
9 | | | |
10 | LL | pub trait IntoCow<'a, B: ?Sized> where B: ToOwned { | |
11 | | ^^^^^^^ - | |
17df50a5 | 12 | help: add missing generic argument |
5869c6ff XL |
13 | | |
14 | LL | <String as IntoCow<B>>::into_cow("foo".to_string()); | |
17df50a5 | 15 | | ^^^^^^^^^^ |
5869c6ff XL |
16 | |
17 | error[E0107]: missing generics for trait `IntoCow` | |
18 | --> $DIR/ufcs-qpath-missing-params.rs:17:16 | |
19 | | | |
20 | LL | <String as IntoCow>::into_cow::<str>("foo".to_string()); | |
17df50a5 | 21 | | ^^^^^^^ expected 1 generic argument |
5869c6ff | 22 | | |
17df50a5 | 23 | note: trait defined here, with 1 generic parameter: `B` |
5869c6ff XL |
24 | --> $DIR/ufcs-qpath-missing-params.rs:3:11 |
25 | | | |
26 | LL | pub trait IntoCow<'a, B: ?Sized> where B: ToOwned { | |
27 | | ^^^^^^^ - | |
17df50a5 | 28 | help: add missing generic argument |
5869c6ff XL |
29 | | |
30 | LL | <String as IntoCow<B>>::into_cow::<str>("foo".to_string()); | |
17df50a5 | 31 | | ^^^^^^^^^^ |
5869c6ff | 32 | |
17df50a5 | 33 | error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied |
5869c6ff XL |
34 | --> $DIR/ufcs-qpath-missing-params.rs:17:26 |
35 | | | |
36 | LL | <String as IntoCow>::into_cow::<str>("foo".to_string()); | |
37 | | ^^^^^^^^------- help: remove these generics | |
38 | | | | |
17df50a5 | 39 | | expected 0 generic arguments |
5869c6ff | 40 | | |
17df50a5 | 41 | note: associated function defined here, with 0 generic parameters |
5869c6ff XL |
42 | --> $DIR/ufcs-qpath-missing-params.rs:4:8 |
43 | | | |
44 | LL | fn into_cow(self) -> Cow<'a, B>; | |
45 | | ^^^^^^^^ | |
b7449926 | 46 | |
5869c6ff | 47 | error: aborting due to 3 previous errors |
b7449926 XL |
48 | |
49 | For more information about this error, try `rustc --explain E0107`. |