1 error[E0308]: mismatched types
2 --> $DIR/pattern-ident-path-generics.rs:3:9
4 LL | match Some("foo") {
5 | ----------- this expression has type `Option<&str>`
6 LL | None::<isize> => {}
7 | ^^^^^^^^^^^^^ expected `&str`, found `isize`
9 = note: expected enum `Option<&str>`
10 found enum `Option<isize>`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.