c48b0d4eb4
Fixes #121632
16 lines
207 B
Rust
16 lines
207 B
Rust
//@ 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
|
|
}
|