2019-07-13 14:52:57 -05:00
|
|
|
// check that reservation impls are accounted for in negative reasoning.
|
2023-03-21 10:26:23 -05:00
|
|
|
// revisions: old next
|
|
|
|
//[next] compile-flags: -Ztrait-solver=next
|
2019-07-13 14:52:57 -05:00
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
|
|
|
trait MyTrait {}
|
2019-07-27 14:18:34 -05:00
|
|
|
#[rustc_reservation_impl="this impl is reserved"]
|
2019-07-13 14:52:57 -05:00
|
|
|
impl MyTrait for () {}
|
|
|
|
|
|
|
|
trait OtherTrait {}
|
|
|
|
impl OtherTrait for () {}
|
|
|
|
impl<T: MyTrait> OtherTrait for T {}
|
|
|
|
//~^ ERROR conflicting implementations
|
|
|
|
|
|
|
|
fn main() {}
|