mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
21 lines
271 B
Rust
21 lines
271 B
Rust
// Test that we check where-clauses on fn items.
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
trait ExtraCopy<T:Copy> { }
|
|
|
|
fn foo<T,U>() where T: ExtraCopy<U> //~ ERROR E0277
|
|
{
|
|
}
|
|
|
|
fn bar() where Vec<dyn Copy>:, {}
|
|
//~^ ERROR E0277
|
|
//~| ERROR E0038
|
|
|
|
struct Vec<T> {
|
|
t: T,
|
|
}
|
|
|
|
fn main() { }
|