about summary refs log tree commit diff
path: root/src/test/ui/pattern
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-02-25 05:41:03 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-02-25 05:41:03 +0100
commite9f6bb7f79ef68859cc5c7641dcc8a399e9e9c46 (patch)
tree09285c46119107854df7c969a96004050f1572e7 /src/test/ui/pattern
parent1d33717583c34bb09fcef236884774ae082cc1fd (diff)
check_pat_path: use pattern_cause
Diffstat (limited to 'src/test/ui/pattern')
-rw-r--r--src/test/ui/pattern/pattern-ident-path-generics.stderr2
1 files changed, 2 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
index 338eb6ff0c8..24b5cdf98d5 100644
--- a/src/test/ui/pattern/pattern-ident-path-generics.stderr
+++ b/src/test/ui/pattern/pattern-ident-path-generics.stderr
@@ -1,6 +1,8 @@
 error[E0308]: mismatched types
   --> $DIR/pattern-ident-path-generics.rs:3:9
    |
+LL |     match Some("foo") {
+   |           ----------- this expression has type `std::option::Option<&str>`
 LL |         None::<isize> => {}
    |         ^^^^^^^^^^^^^ expected `&str`, found `isize`
    |