1 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
2 --> $DIR/invalid-const-arg-for-type-param.rs:6:23
4 LL | let _: u32 = 5i32.try_into::<32>().unwrap();
5 | ^^^^^^^^ expected 0 generic arguments
7 note: associated function defined here, with 0 generic parameters
8 --> $SRC_DIR/core/src/convert/mod.rs:LL:COL
10 LL | fn try_into(self) -> Result<T, Self::Error>;
12 help: consider moving this generic argument to the `TryInto` trait, which takes up to 1 argument
14 LL | let _: u32 = TryInto::<32>::try_into(5i32).unwrap();
15 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 help: remove these generics
18 LL - let _: u32 = 5i32.try_into::<32>().unwrap();
19 LL + let _: u32 = 5i32.try_into().unwrap();
22 error[E0599]: no method named `f` found for struct `S` in the current scope
23 --> $DIR/invalid-const-arg-for-type-param.rs:9:7
26 | -------- method `f` not found for this struct
29 | ^ method not found in `S`
31 error[E0107]: this struct takes 0 generic arguments but 1 generic argument was supplied
32 --> $DIR/invalid-const-arg-for-type-param.rs:12:5
35 | ^----- help: remove these generics
37 | expected 0 generic arguments
39 note: struct defined here, with 0 generic parameters
40 --> $DIR/invalid-const-arg-for-type-param.rs:3:8
45 error: aborting due to 3 previous errors
47 Some errors have detailed explanations: E0107, E0599.
48 For more information about an error, try `rustc --explain E0107`.