Files
rust/tests/ui/traits/next-solver/coherence/coherence-fulfill-overflow.rs
David Wood 1fd13fddba tests: add #![rustc_no_implicit_bounds]
After reviewing all tests with `?Sized` and discussing with lcnr, these
tests seem like they could probably benefit from
`#![rustc_no_implicit_bounds]`.
2025-06-27 05:34:08 +00:00

18 lines
357 B
Rust

//@ compile-flags: -Znext-solver=coherence
#![feature(rustc_attrs)]
#![rustc_no_implicit_bounds]
#![recursion_limit = "10"]
trait Trait {}
struct W<T>(*const T);
trait TwoW {}
impl<T: TwoW> TwoW for W<W<T>> {}
impl<T: TwoW> Trait for W<T> {}
impl<T: TwoW> Trait for T {}
//~^ ERROR conflicting implementations of trait `Trait` for type `W
fn main() {}