]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import-crate-with-invalid-spans/main.rs
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / ui / imports / import-crate-with-invalid-spans / main.rs
1 // run-pass
2 // aux-build:crate_with_invalid_spans.rs
3
4 // pretty-expanded FIXME #23616
5
6 extern crate crate_with_invalid_spans;
7
8 fn main() {
9     // The AST of `exported_generic` stored in crate_with_invalid_spans's
10     // metadata should contain an invalid span where span.lo() > span.hi().
11     // Let's make sure the compiler doesn't crash when encountering this.
12     let _ = crate_with_invalid_spans::exported_generic(32u32, 7u32);
13 }