Fix tidy formatting manually for E0423.md
This commit is contained in:
parent
9cdcd0c3fa
commit
daaff44cbc
1 changed files with 3 additions and 5 deletions
|
|
@ -45,15 +45,13 @@ fn h1() -> i32 {
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Enum types used as values
|
||||
|
||||
Enums are types and cannot be used directly as values.
|
||||
|
||||
```compile_fail,E0423
|
||||
fn main() {
|
||||
fn main(){
|
||||
let x = Option::<i32>;
|
||||
//~^ ERROR expected value, found enum `Option`
|
||||
//~^ ERROR expected value,found enum `Option`
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue