lib features ending in '_internals?' are internal
This commit is contained in:
parent
9a66e4471f
commit
d1583eba66
3 changed files with 46 additions and 6 deletions
11
tests/ui/lint/internal_features.rs
Normal file
11
tests/ui/lint/internal_features.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
#![forbid(internal_features)]
|
||||
// A lang feature and a lib feature.
|
||||
#![feature(intrinsics, panic_internals)]
|
||||
//~^ ERROR: internal
|
||||
//~| ERROR: internal
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue