mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
16 lines
206 B
Rust
16 lines
206 B
Rust
// Check that we enforce WF conditions also for where clauses in fn items.
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
trait MustBeCopy<T:Copy> {
|
|
}
|
|
|
|
fn bar<T,U>()
|
|
where T: MustBeCopy<U> //~ ERROR E0277
|
|
{
|
|
}
|
|
|
|
|
|
fn main() { }
|