Skip to content

Commit 09a7bc5

Browse files
committed
Running EUV requires the Copy lang item, so adjust privacy tests.
1 parent ecd9c10 commit 09a7bc5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/test/compile-fail/privacy1.rs

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
#[lang="sized"]
1515
pub trait Sized {}
1616

17+
#[lang="copy"]
18+
pub trait Copy {}
19+
1720
mod bar {
1821
// shouldn't bring in too much
1922
pub use self::glob::*;

src/test/compile-fail/privacy4.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#![no_std] // makes debugging this test *a lot* easier (during resolve)
1313

1414
#[lang = "sized"] pub trait Sized for Sized? {}
15+
#[lang="copy"] pub trait Copy {}
1516

1617
// Test to make sure that private items imported through globs remain private
1718
// when they're used.

0 commit comments

Comments
 (0)