2022-04-27 15:01:05 +00:00
|
|
|
// aux-build:default_body.rs
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
extern crate default_body;
|
|
|
|
|
|
|
|
use default_body::{Equal, JustTrait};
|
|
|
|
|
|
|
|
struct Type;
|
|
|
|
|
|
|
|
impl JustTrait for Type {}
|
2022-06-20 12:07:14 +00:00
|
|
|
//~^ ERROR not all trait items implemented, missing: `CONSTANT` [E0046]
|
|
|
|
//~| ERROR not all trait items implemented, missing: `fun` [E0046]
|
2023-05-05 23:29:52 +00:00
|
|
|
//~| ERROR not all trait items implemented, missing: `fun2` [E0046]
|
2022-04-27 15:01:05 +00:00
|
|
|
|
|
|
|
impl Equal for Type {
|
2022-06-20 12:07:14 +00:00
|
|
|
//~^ ERROR not all trait items implemented, missing: `eq` [E0046]
|
2022-04-27 15:01:05 +00:00
|
|
|
fn neq(&self, other: &Self) -> bool {
|
|
|
|
false
|
|
|
|
}
|
|
|
|
}
|