summaryrefslogtreecommitdiffstats
path: root/third_party/rust/inherent/tests/ui/nonsense-in-default.rs
blob: 907f6bdd8167b5a1d370ce50409044fe4fb5e9ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use inherent::inherent;

trait A {
    fn a(&self) {}
}

struct X;

#[inherent]
impl A for X {
    default! {
        const NONSENSE: usize = 1;
    }
}

fn main() {}