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