blob: b67a1f153ffef520efb7ec7f17d1c6b29cb5f3cd [file] [log] [blame]
use std::convert::TryInto;
struct S;
fn main() {
let _: u32 = 5i32.try_into::<32>().unwrap();
//~^ ERROR this associated function takes 0 const arguments but 1 const argument was supplied
S.f::<0>();
//~^ ERROR no method named `f`
S::<0>;
//~^ ERROR this struct takes 0 const arguments but 1 const argument was supplied
}