]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0520.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[rust.git] / src / test / ui / error-codes / E0520.rs
1 #![feature(specialization)]
2 //~^ WARN the feature `specialization` is incomplete
3
4 trait SpaceLlama {
5     fn fly(&self);
6 }
7
8 impl<T> SpaceLlama for T {
9     default fn fly(&self) {}
10 }
11
12 impl<T: Clone> SpaceLlama for T {
13     fn fly(&self) {}
14 }
15
16 impl SpaceLlama for i32 {
17     default fn fly(&self) {}
18     //~^ ERROR E0520
19 }
20
21 fn main() {
22 }