summaryrefslogtreecommitdiff
path: root/tests/ui/specialization/min_specialization/specialize_nothing.rs
blob: ef92254d4651c74eae9d664568e3ed10e40b0bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(min_specialization)]

trait Special {
    fn be_special();
}

impl<T> Special for T {
    fn be_special() {}
}

impl Special for usize {}
//~^ ERROR specialization impl does not specialize any associated items

fn main() {}