about summary refs log tree commit diff
path: root/tests/ui/switched-expectations.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/switched-expectations.rs')
-rw-r--r--tests/ui/switched-expectations.rs4
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 00000000000..c5bc84de54c
--- /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]
+}