]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass/imports/import-crate-with-invalid-spans/main.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / run-pass / imports / import-crate-with-invalid-spans / main.rs
CommitLineData
b7449926 1// run-pass
c34b1796 2// aux-build:crate_with_invalid_spans.rs
223e47cc 3
c34b1796 4// pretty-expanded FIXME #23616
1a4d82fc 5
c34b1796 6extern crate crate_with_invalid_spans;
223e47cc 7
c34b1796
AL
8fn main() {
9 // The AST of `exported_generic` stored in crate_with_invalid_spans's
ea8adc8c 10 // metadata should contain an invalid span where span.lo() > span.hi().
c34b1796
AL
11 // Let's make sure the compiler doesn't crash when encountering this.
12 let _ = crate_with_invalid_spans::exported_generic(32u32, 7u32);
13}