2018-09-06 12:41:12 +00:00
|
|
|
// run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
#![allow(unused_imports)]
|
2018-09-06 12:41:12 +00:00
|
|
|
|
2015-12-28 23:40:11 +00:00
|
|
|
// aux-build:go_trait.rs
|
|
|
|
|
2020-05-17 08:22:48 +00:00
|
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
2015-12-30 23:25:31 +00:00
|
|
|
|
2015-12-28 23:40:11 +00:00
|
|
|
extern crate go_trait;
|
|
|
|
|
|
|
|
use go_trait::{Go,GoMut};
|
|
|
|
use std::fmt::Debug;
|
|
|
|
use std::default::Default;
|
|
|
|
|
|
|
|
struct MyThingy;
|
|
|
|
|
|
|
|
impl Go for MyThingy {
|
|
|
|
fn go(&self, arg: isize) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
impl GoMut for MyThingy {
|
|
|
|
fn go_mut(&mut self, arg: isize) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|