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 | ^^^^^^^^------ help: remove these generics
7 | expected 0 generic arguments
9 note: associated function defined here, with 0 generic parameters
10 --> $SRC_DIR/core/src/convert/mod.rs:LL:COL
12 LL | fn try_into(self) -> Result<T, Self::Error>;
15 error[E0599]: no method named `f` found for struct `S` in the current scope
16 --> $DIR/invalid-const-arg-for-type-param.rs:9:7
19 | -------- method `f` not found for this struct
22 | ^ method not found in `S`
24 error[E0107]: this struct takes 0 generic arguments but 1 generic argument was supplied
25 --> $DIR/invalid-const-arg-for-type-param.rs:12:5
28 | ^----- help: remove these generics
30 | expected 0 generic arguments
32 note: struct defined here, with 0 generic parameters
33 --> $DIR/invalid-const-arg-for-type-param.rs:3:8
38 error: aborting due to 3 previous errors
40 Some errors have detailed explanations: E0107, E0599.
41 For more information about an error, try `rustc --explain E0107`.