blob: e54963d01e83f8041342a0ecdfd6b79487fca790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ run-rustfix
trait Foo {}
impl Foo for fn() {}
trait Bar {
fn do_stuff(&self) where Self: Foo {}
}
impl<T> Bar for T {}
fn main() {
(main as fn()).do_stuff();
//~^ ERROR the trait bound
}
|