2015-04-14 21:17:14 +03:00
|
|
|
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
|
2015-04-14 21:17:14 +03:00
|
|
|
()+() //~ ERROR binary operation `+` cannot be applied
|
|
|
|
// ^ ensure that we typeck the inner expression ^
|
|
|
|
];
|
|
|
|
}
|