Debian Codegraph @

gcc/testsuite/rust/compile/min_specialization1.rs

raw
1 #![feature(min_specialization)]
2
3 pub trait Foo {
4 fn foo(&self) -> bool {
5 false
6 }
7 }
8
9 pub struct Bar;
10
11 impl Foo for Bar {
12 default fn foo(&self) -> bool { // { dg-warning "unused" }
13 true
14 }
15 }