rust/src/test/ui/resolve/name-clash-nullary.stderr

13 lines
390 B
Plaintext
Raw Normal View History

2017-11-04 00:01:56 +00:00
error[E0308]: mismatched types
2018-12-25 15:56:47 +00:00
--> $DIR/name-clash-nullary.rs:2:7
2017-11-04 00:01:56 +00:00
|
2018-02-23 00:42:32 +00:00
LL | let None: isize = 42; //~ ERROR mismatched types
2017-11-04 00:01:56 +00:00
| ^^^^ expected isize, found enum `std::option::Option`
|
= note: expected type `isize`
found type `std::option::Option<_>`
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0308`.