blob: a5b45f13e74ade8d2705e971e9357dd6a491581c (
plain)
1
2
3
4
5
6
|
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 ^
];
}
|