diff options
Diffstat (limited to 'src/test/ui/coercion/coercion-missing-tail-expected-type.fixed')
-rw-r--r-- | src/test/ui/coercion/coercion-missing-tail-expected-type.fixed | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/coercion/coercion-missing-tail-expected-type.fixed b/src/test/ui/coercion/coercion-missing-tail-expected-type.fixed deleted file mode 100644 index 713e04774..000000000 --- a/src/test/ui/coercion/coercion-missing-tail-expected-type.fixed +++ /dev/null @@ -1,16 +0,0 @@ -// #41425 -- error message "mismatched types" has wrong types -// run-rustfix - -fn plus_one(x: i32) -> i32 { //~ ERROR mismatched types - x + 1 -} - -fn foo() -> Result<u8, u64> { //~ ERROR mismatched types - Ok(1) -} - -fn main() { - let x = plus_one(5); - let _ = foo(); - println!("X = {}", x); -} |