1 // Capture a coherence pattern from wasm-bindgen that we discovered as part of
2 // future-compatibility warning #56105. This pattern currently receives a lint
3 // warning but we probably want to support it long term.
5 // Key distinction: we are implementing once for `A` (take ownership) and one
10 #![deny(coherence_leak_check)]
14 impl<'a> TheTrait for fn(&'a u8) {}
16 impl TheTrait for fn(&u8) {
17 //~^ ERROR conflicting implementations of trait
18 //~| WARNING this was previously accepted by the compiler