]> git.proxmox.com Git - rustc.git/blame - tests/ui/coherence/coherence-wasm-bindgen.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / coherence / coherence-wasm-bindgen.stderr
CommitLineData
487cf647 1error: conflicting implementations of trait `IntoWasmAbi` for type `&dyn Fn(&_) -> _`
f035d41b
XL
2 --> $DIR/coherence-wasm-bindgen.rs:28:1
3 |
ed00b5ec
FG
4LL | / impl<'a, 'b, A, R> IntoWasmAbi for &'a (dyn Fn(A) -> R + 'b)
5LL | | where
6LL | | A: FromWasmAbi,
7LL | | R: ReturnWasmAbi,
8 | |_____________________- first implementation here
f035d41b 9...
ed00b5ec
FG
10LL | / impl<'a, 'b, A, R> IntoWasmAbi for &'a (dyn for<'x> Fn(&'x A) -> R + 'b)
11LL | | where
12LL | | A: RefFromWasmAbi,
13LL | | R: ReturnWasmAbi,
14 | |_____________________^ conflicting implementation for `&dyn Fn(&_) -> _`
f035d41b 15 |
2b03887a
FG
16 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
17 = note: for more information, see issue #56105 <https://github.com/rust-lang/rust/issues/56105>
18 = note: downstream crates may implement trait `FromWasmAbi` for type `&_`
19 = note: this behavior recently changed as a result of a bug fix; see rust-lang/rust#56105 for details
f035d41b
XL
20note: the lint level is defined here
21 --> $DIR/coherence-wasm-bindgen.rs:10:9
22 |
23LL | #![deny(coherence_leak_check)]
24 | ^^^^^^^^^^^^^^^^^^^^
f035d41b
XL
25
26error: aborting due to previous error
27