about summary refs log tree commit diff
path: root/tests/ui/stability-attribute/default-body-stability-err.rs
blob: 58451666859632d5d9e9f6dc2c4f924b14b78a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ aux-build:default_body.rs
#![crate_type = "lib"]

extern crate default_body;

use default_body::{Equal, JustTrait};

struct Type;

impl JustTrait for Type {}
//~^ ERROR not all trait items implemented, missing: `CONSTANT` [E0046]
//~| ERROR not all trait items implemented, missing: `fun` [E0046]
//~| ERROR not all trait items implemented, missing: `fun2` [E0046]

impl Equal for Type {
    //~^ ERROR not all trait items implemented, missing: `eq` [E0046]
    fn neq(&self, other: &Self) -> bool {
        false
    }
}