]> git.proxmox.com Git - rustc.git/blob - tests/ui/specialization/defaultimpl/allowed-cross-crate.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / specialization / defaultimpl / allowed-cross-crate.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4 #![allow(unused_imports)]
5
6 // aux-build:go_trait.rs
7
8 #![feature(specialization)] //~ WARN the feature `specialization` is incomplete
9
10 extern crate go_trait;
11
12 use go_trait::{Go,GoMut};
13 use std::fmt::Debug;
14 use std::default::Default;
15
16 struct MyThingy;
17
18 impl Go for MyThingy {
19 fn go(&self, arg: isize) { }
20 }
21
22 impl GoMut for MyThingy {
23 fn go_mut(&mut self, arg: isize) { }
24 }
25
26 fn main() { }