mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
15 lines
228 B
Rust
15 lines
228 B
Rust
|
// Check that we enforce WF conditions also for argument types in fn items.
|
||
|
|
||
|
#![feature(rustc_attrs)]
|
||
|
#![allow(dead_code)]
|
||
|
|
||
|
struct MustBeCopy<T:Copy> {
|
||
|
t: T
|
||
|
}
|
||
|
|
||
|
fn bar<T>(_: &MustBeCopy<T>) //~ ERROR E0277
|
||
|
{
|
||
|
}
|
||
|
|
||
|
fn main() { }
|