mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
360 B
Rust
17 lines
360 B
Rust
// Test that `#[rustc_copy_clone_marker]` is not injected when a user-defined derive shadows
|
|
// a built-in derive in non-trivial scope (e.g. in a nested module).
|
|
|
|
//@ check-pass
|
|
//@ aux-build:derive-marker-tricky.rs
|
|
|
|
extern crate derive_marker_tricky;
|
|
|
|
mod m {
|
|
use derive_marker_tricky::NoMarker as Copy;
|
|
|
|
#[derive(Copy)]
|
|
struct S;
|
|
}
|
|
|
|
fn main() {}
|