mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
16 lines
393 B
Rust
16 lines
393 B
Rust
// check that reservation impls are accounted for in negative reasoning.
|
|
// revisions: old next
|
|
//[next] compile-flags: -Ztrait-solver=next
|
|
#![feature(rustc_attrs)]
|
|
|
|
trait MyTrait {}
|
|
#[rustc_reservation_impl="this impl is reserved"]
|
|
impl MyTrait for () {}
|
|
|
|
trait OtherTrait {}
|
|
impl OtherTrait for () {}
|
|
impl<T: MyTrait> OtherTrait for T {}
|
|
//~^ ERROR conflicting implementations
|
|
|
|
fn main() {}
|