diff options
Diffstat (limited to 'tests/ui/switched-expectations.rs')
-rw-r--r-- | tests/ui/switched-expectations.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/switched-expectations.rs b/tests/ui/switched-expectations.rs new file mode 100644 index 000000000..c5bc84de5 --- /dev/null +++ b/tests/ui/switched-expectations.rs @@ -0,0 +1,4 @@ +fn main() { + let var = 10i32; + let ref string: String = var; //~ ERROR mismatched types [E0308] +} |