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
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let None: isize = 42;
|
2020-02-25 04:41:03 +00:00
|
|
|
| ^^^^ ----- expected due to this
|
|
|
|
| |
|
2023-01-03 02:00:33 +00:00
|
|
|
| expected `isize`, found `Option<_>`
|
2017-11-04 00:01:56 +00:00
|
|
|
|
|
|
|
|
= note: expected type `isize`
|
2020-09-02 07:40:56 +00:00
|
|
|
found enum `Option<_>`
|
2017-11-04 00:01:56 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|