summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/pattern-ident-path-generics.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/pattern/pattern-ident-path-generics.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/pattern/pattern-ident-path-generics.stderr b/src/test/ui/pattern/pattern-ident-path-generics.stderr
new file mode 100644
index 000000000..01b082bd3
--- /dev/null
+++ b/src/test/ui/pattern/pattern-ident-path-generics.stderr
@@ -0,0 +1,14 @@
+error[E0308]: mismatched types
+ --> $DIR/pattern-ident-path-generics.rs:3:9
+ |
+LL | match Some("foo") {
+ | ----------- this expression has type `Option<&str>`
+LL | None::<isize> => {}
+ | ^^^^^^^^^^^^^ expected `&str`, found `isize`
+ |
+ = note: expected enum `Option<&str>`
+ found enum `Option<isize>`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.