]>
Commit | Line | Data |
---|---|---|
abe05a73 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/name-clash-nullary.rs:12:7 | |
3 | | | |
0531ce1d | 4 | LL | let None: isize = 42; //~ ERROR mismatched types |
abe05a73 XL |
5 | | ^^^^ expected isize, found enum `std::option::Option` |
6 | | | |
7 | = note: expected type `isize` | |
8 | found type `std::option::Option<_>` | |
9 | ||
10 | error: aborting due to previous error | |
11 | ||
0531ce1d | 12 | For more information about this error, try `rustc --explain E0308`. |