Add a note about 2018e if someone uses try { in 2015e
This commit is contained in:
parent
16ca0b9f63
commit
9312ca10b6
2 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ error[E0574]: expected struct, variant or union type, found macro `try`
|
|||
|
|
||||
LL | let try_result: Option<_> = try {
|
||||
| ^^^ help: use `!` to invoke the macro: `try!`
|
||||
|
|
||||
= note: if you want the `try` keyword, you need to be in the 2018 edition
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue