mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
19 lines
332 B
Rust
19 lines
332 B
Rust
// check-pass
|
|
// aux-build:default_body.rs
|
|
#![crate_type = "lib"]
|
|
#![feature(fun_default_body, eq_default_body, constant_default_body)]
|
|
|
|
extern crate default_body;
|
|
|
|
use default_body::{Equal, JustTrait};
|
|
|
|
struct Type;
|
|
|
|
impl JustTrait for Type {}
|
|
|
|
impl Equal for Type {
|
|
fn neq(&self, other: &Self) -> bool {
|
|
false
|
|
}
|
|
}
|