1 // For each of these, we should get the appropriate type mismatch error message,
2 // and the function should be echoed.
4 // aux-build:test-macros.rs
7 extern crate test_macros;
11 let x: usize = "hello"; //~ ERROR mismatched types
15 fn b(x: Option<isize>) -> usize {
17 Some(x) => { return x }, //~ ERROR mismatched types
33 let x = Foo { a: 10isize }; //~ ERROR mismatched types
34 let y = Foo { a: 10, b: 10isize }; //~ ERROR has no field named `b`
39 0 //~ ERROR mismatched types
44 0 //~ ERROR mismatched types
48 extern "Rust" fn rust_abi() {
49 0 //~ ERROR mismatched types
53 extern "\x43" fn c_abi_escaped() {
54 0 //~ ERROR mismatched types