]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.rs
Remove needless error in test
[rust.git] / src / test / ui / rfc-1937-termination-trait / termination-trait-test-wrong-type.rs
index f49111c3fc7bf27c8261ebed93f5925f5b6fbd2d..193a523aed24bab627a78589bed704b887c53025 100644 (file)
@@ -1,8 +1,8 @@
 // compile-flags: --test
 
-use std::num::ParseIntError;
+use std::num::ParseFloatError;
 
 #[test]
-fn can_parse_zero_as_f32() -> Result<f32, ParseIntError> { //~ ERROR
-    "0".parse() //~ ERROR type mismatch resolving
+fn can_parse_zero_as_f32() -> Result<f32, ParseFloatError> { //~ ERROR
+    "0".parse()
 }