mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Fix tidy formatting manually for E0423.md
This commit is contained in:
@@ -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`
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user