mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
add test for ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir on invalid module path with staged_ap
Fixes https://github.com/rust-lang/rust/issues/108697
This commit is contained in:
parent
6c90ac8d8f
commit
c968b8b777
9
tests/ui/unpretty/staged-api-invalid-path-108697.rs
Normal file
9
tests/ui/unpretty/staged-api-invalid-path-108697.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// issue: rust-lang/rust#108697
|
||||
// ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir
|
||||
// on invalid module path with staged_api
|
||||
//@ compile-flags: -Zunpretty=mir
|
||||
|
||||
#![feature(staged_api)]
|
||||
#[path = "lol"]
|
||||
mod foo;
|
||||
//~^ ERROR couldn't read
|
8
tests/ui/unpretty/staged-api-invalid-path-108697.stderr
Normal file
8
tests/ui/unpretty/staged-api-invalid-path-108697.stderr
Normal file
@ -0,0 +1,8 @@
|
||||
error: couldn't read $DIR/lol: No such file or directory (os error 2)
|
||||
--> $DIR/staged-api-invalid-path-108697.rs:8:1
|
||||
|
|
||||
LL | mod foo;
|
||||
| ^^^^^^^^
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
Loading…
Reference in New Issue
Block a user