summaryrefslogtreecommitdiffstats
path: root/src/test/ui/drop-bounds/drop-bounds.rs
blob: c73538278d3be9cc8cf0637c04d046eca43e6b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![deny(drop_bounds)]
fn foo<T: Drop>() {} //~ ERROR
fn bar<U>()
where
    U: Drop, //~ ERROR
{
}
fn baz(_x: impl Drop) {} //~ ERROR
struct Foo<T: Drop> { //~ ERROR
  _x: T
}
struct Bar<U> where U: Drop { //~ ERROR
  _x: U
}
trait Baz: Drop { //~ ERROR
}
impl<T: Drop> Baz for T { //~ ERROR
}
fn main() {}