1 // aux-build:span-preservation.rs
3 // For each of these, we should get the appropriate type mismatch error message,
4 // and the function should be echoed.
6 extern crate span_preservation as foo;
12 let x: usize = "hello";;;;;
16 fn b(x: Option<isize>) -> usize {
18 Some(x) => { return x },
34 let x = Foo { a: 10isize };
35 let y = Foo { a: 10, b: 10isize };
38 // FIXME: This doesn't work at the moment. See the one below. The pretty-printer
39 // injects a "C" between `extern` and `fn` which causes a "probably_eq"
40 // `TokenStream` mismatch. The lack of `"C"` should be preserved in the AST.