]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.rs
2 // - default impls do not have to supply all items and
3 // - a default impl does not count as an impl (in this case, an incomplete default impl).
5 #![feature(specialization)] //~ WARN the feature `specialization` is incomplete
8 fn foo_one(&self) -> &'
static str;
9 fn foo_two(&self) -> &'
static str;
14 default impl<T
> Foo
for T
{
15 fn foo_one(&self) -> &'
static str {
22 println
!("{}", MyStruct
.foo_one());
23 //~^ ERROR no method named `foo_one` found