mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 14:24:05 +00:00
11 lines
138 B
Plaintext
11 lines
138 B
Plaintext
//@ run-rustfix
|
|
|
|
trait Foo {}
|
|
|
|
impl Foo for fn() {}
|
|
|
|
fn main() {
|
|
let _x: &dyn Foo = &(main as fn());
|
|
//~^ ERROR the trait bound
|
|
}
|