ICE when applying test to crate root
This commit is contained in:
parent
568b117627
commit
1864bf6a51
2 changed files with 8 additions and 2 deletions
|
|
@ -1,2 +0,0 @@
|
|||
//@ known-bug: #114920
|
||||
#![core::prelude::v1::test]
|
||||
8
tests/ui/macros/test-on-crate-root.rs
Normal file
8
tests/ui/macros/test-on-crate-root.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// ICE when applying `#![test]` to the crate root,
|
||||
// though only when specified with a full path. `#![test]` is not enough.
|
||||
// Fixes #114920
|
||||
#![core::prelude::v1::test]
|
||||
|
||||
|
||||
|
||||
fn main() {} // not important to reproduce the issue
|
||||
Loading…
Add table
Add a link
Reference in a new issue