]> git.lizzy.rs Git - rust.git/blob - tests/ui/ufcs/ufcs-qpath-missing-params.stderr
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / ufcs / ufcs-qpath-missing-params.stderr
1 error[E0107]: missing generics for trait `IntoCow`
2   --> $DIR/ufcs-qpath-missing-params.rs:14:16
3    |
4 LL |     <String as IntoCow>::into_cow("foo".to_string());
5    |                ^^^^^^^ expected 1 generic argument
6    |
7 note: trait defined here, with 1 generic parameter: `B`
8   --> $DIR/ufcs-qpath-missing-params.rs:3:11
9    |
10 LL | pub trait IntoCow<'a, B: ?Sized> where B: ToOwned {
11    |           ^^^^^^^     -
12 help: add missing generic argument
13    |
14 LL |     <String as IntoCow<B>>::into_cow("foo".to_string());
15    |                       +++
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());
21    |                ^^^^^^^ expected 1 generic argument
22    |
23 note: trait defined here, with 1 generic parameter: `B`
24   --> $DIR/ufcs-qpath-missing-params.rs:3:11
25    |
26 LL | pub trait IntoCow<'a, B: ?Sized> where B: ToOwned {
27    |           ^^^^^^^     -
28 help: add missing generic argument
29    |
30 LL |     <String as IntoCow<B>>::into_cow::<str>("foo".to_string());
31    |                       +++
32
33 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
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    |                          |
39    |                          expected 0 generic arguments
40    |
41 note: associated function defined here, with 0 generic parameters
42   --> $DIR/ufcs-qpath-missing-params.rs:4:8
43    |
44 LL |     fn into_cow(self) -> Cow<'a, B>;
45    |        ^^^^^^^^
46
47 error: aborting due to 3 previous errors
48
49 For more information about this error, try `rustc --explain E0107`.