]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stability-attribute/default-body-stability-err.rs
8f970d0c9f6617407f2e88ac808c6946f4558363
[rust.git] / src / test / ui / stability-attribute / default-body-stability-err.rs
1 // aux-build:default_body.rs
2 #![crate_type = "lib"]
3
4 extern crate default_body;
5
6 use default_body::{Equal, JustTrait};
7
8 struct Type;
9
10 impl JustTrait for Type {}
11 //~^ ERROR use of unstable library feature 'fun_default_body'
12 //~| ERROR use of unstable library feature 'constant_default_body'
13
14 impl Equal for Type {
15     //~^ ERROR use of unstable library feature 'eq_default_body'
16     fn neq(&self, other: &Self) -> bool {
17         false
18     }
19 }