2018-09-06 07:41:12 -05:00
|
|
|
//@ run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
#![allow(unused_imports)]
|
2018-09-06 07:41:12 -05:00
|
|
|
|
2016-11-18 10:14:42 -06:00
|
|
|
//@ aux-build:go_trait.rs
|
|
|
|
|
2020-05-17 03:22:48 -05:00
|
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
2016-11-18 10:14:42 -06: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() { }
|