Skip to content

Commit 5a5c904

Browse files
committed
Allow deprecated in test specifically for primitive vs module fallback
1 parent e6e7694 commit 5a5c904

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/ui/issues/issue-20427.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ mod reuse {
6666
}
6767

6868
mod guard {
69+
#[allow(deprecated)]
6970
pub fn check() {
7071
use std::u8; // bring module u8 in scope
7172
fn f() -> u8 { // OK, resolves to primitive u8, not to std::u8

0 commit comments

Comments
 (0)