mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
13 lines
198 B
Rust
13 lines
198 B
Rust
// Check that we enforce WF conditions also for types in fns.
|
|
|
|
struct MustBeCopy<T:Copy> {
|
|
t: T
|
|
}
|
|
|
|
struct Bar<T> {
|
|
// needs T: Copy
|
|
x: fn(MustBeCopy<T>) //~ ERROR E0277
|
|
}
|
|
|
|
fn main() { }
|