blob: a8d56f4428b91628cdd0aa1d05470ce3250325dc [file] [edit]
//@ revisions: old-solver next-solver
//@[next-solver] compile-flags: -Znext-solver
//@ run-pass
//@ run-rustfix
fn foo(_: impl Into<f32>) {}
fn main() {
foo(1.0_f32);
//~^ WARN falling back to `f32`
//~| WARN this was previously accepted
foo(-(2.5_f32));
//~^ WARN falling back to `f32`
//~| WARN this was previously accepted
foo(1e5_f32);
//~^ WARN falling back to `f32`
//~| WARN this was previously accepted
foo(4f32); // no warning
let x = -4.0_f32;
//~^ WARN falling back to `f32`
//~| WARN this was previously accepted
foo(x);
}