rust/tests/ui/resolve/name-clash-nullary.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
389 B
Plaintext
Raw Normal View History

2017-11-03 19:01:56 -05:00
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/name-clash-nullary.rs:2:7
2017-11-03 19:01:56 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let None: isize = 42;
2020-02-24 22:41:03 -06:00
| ^^^^ ----- expected due to this
| |
| expected `isize`, found `Option<_>`
2017-11-03 19:01:56 -05:00
|
= note: expected type `isize`
found enum `Option<_>`
2017-11-03 19:01:56 -05:00
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0308`.