rust/src/test/ui/issues/issue-24363.rs
2018-12-25 21:08:33 -07:00

7 lines
247 B
Rust

fn main() {
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 ^
];
}