aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/min_specialization1.rs
blob: d38167e90347421c42f797c48c8bd0a9990f8248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(min_specialization)]

pub trait Foo {
    fn foo(&self) -> bool {
        false
    }
}

pub struct Bar;

impl Foo for Bar {
    default fn foo(&self) -> bool { // { dg-warning "unused" }
        true
    }
}