mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
18 lines
471 B
Rust
18 lines
471 B
Rust
//@ aux-build:unstable_impl_coherence_aux.rs
|
|
//@ revisions: enabled disabled
|
|
|
|
#![cfg_attr(enabled, feature(foo))]
|
|
extern crate unstable_impl_coherence_aux as aux;
|
|
use aux::Trait;
|
|
|
|
/// Coherence test for unstable impl.
|
|
/// No matter feature `foo` is enabled or not, the impl
|
|
/// for aux::Trait will be rejected by coherence checking.
|
|
|
|
struct LocalTy;
|
|
|
|
impl aux::Trait for LocalTy {}
|
|
//~^ ERROR: conflicting implementations of trait `Trait` for type `LocalTy`
|
|
|
|
fn main(){}
|