rust/src/test/ui/issues/issue-24363.rs

7 lines
247 B
Rust
Raw Normal View History

fn main() {
2017-06-11 19:48:46 +02:00
1.create_a_type_error[ //~ `{integer}` is a primitive type and therefore doesn't have fields
()+() //~ ERROR binary operation `+` cannot be applied
// ^ ensure that we typeck the inner expression ^
];
}