rust/tests/ui/issues/issue-24363.rs

7 lines
219 B
Rust
Raw Normal View History

fn main() {
2017-06-11 17:48:46 +00:00
1.create_a_type_error[ //~ `{integer}` is a primitive type and therefore doesn't have fields
2019-12-11 22:11:32 +00:00
()+() //~ ERROR cannot add
// ^ ensure that we typeck the inner expression ^
];
}