ICE when applying test to crate root

This commit is contained in:
Jana Dönszelmann 2025-10-18 11:25:13 +02:00
parent 568b117627
commit 1864bf6a51
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -1,2 +0,0 @@
//@ known-bug: #114920
#![core::prelude::v1::test]

View 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