Skip to content

Commit 62f53e3

Browse files
committed
moved renamed docs stderr | integral-variable-unification-error.rs
1 parent e2566b7 commit 62f53e3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/ui/integral-variable-unification-error.rs renamed to tests/ui/mismatched_types/int-float-type-mismatch.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
//! Test type mismatch error when assigning float to integer variable
2+
13
fn main() {
24
let mut x //~ NOTE expected due to the type of this binding
35
=
4-
2; //~ NOTE expected due to this value
6+
2; //~ NOTE expected due to this value
57
x = 5.0;
68
//~^ ERROR mismatched types
79
//~| NOTE expected integer, found floating-point number

tests/ui/integral-variable-unification-error.stderr renamed to tests/ui/mismatched_types/int-float-type-mismatch.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/integral-variable-unification-error.rs:5:9
2+
--> $DIR/int-float-type-mismatch.rs:7:9
33
|
44
LL | let mut x
55
| ----- expected due to the type of this binding

0 commit comments

Comments
 (0)