]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pattern-ident-path-generics.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / pattern-ident-path-generics.stderr
1 error[E0308]: mismatched types
2   --> $DIR/pattern-ident-path-generics.rs:3:9
3    |
4 LL |     match Some("foo") {
5    |           ----------- this expression has type `Option<&str>`
6 LL |         None::<isize> => {}
7    |         ^^^^^^^^^^^^^ expected `&str`, found `isize`
8    |
9    = note: expected enum `Option<&str>`
10               found enum `Option<isize>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.