mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
20 lines
433 B
Rust
20 lines
433 B
Rust
//! Check that we don't break orphan rules.
|
|
//! The dependency may add an impl for `u8` later,
|
|
//! which would break this crate. We want to avoid adding
|
|
//! more ways in which adding an impl can be a breaking change.
|
|
|
|
// aux-build:trivial3.rs
|
|
|
|
extern crate trivial3;
|
|
|
|
pub trait Foo {
|
|
fn foo()
|
|
where
|
|
Self: trivial3::Trait;
|
|
}
|
|
|
|
impl Foo for u8 {}
|
|
//~^ ERROR not all trait items implemented, missing: `foo`
|
|
|
|
fn main() {}
|