diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/traits/next-solver/float-canonical.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/float-canonical.rs b/tests/ui/traits/next-solver/float-canonical.rs new file mode 100644 index 000000000..90d75bacb --- /dev/null +++ b/tests/ui/traits/next-solver/float-canonical.rs @@ -0,0 +1,8 @@ +// compile-flags: -Znext-solver +// check-pass + +fn foo(x: f64) { + let y = x + 1.0; +} + +fn main() {} |