1
Fork 0
rust/tests/ui/issues/issue-24363.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
225 B
Rust
Raw Normal View History

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