2014-10-01 07:51:46 -04:00
|
|
|
// aux-build:go_trait.rs
|
|
|
|
|
|
|
|
extern crate go_trait;
|
|
|
|
|
|
|
|
use go_trait::{Go,GoMut};
|
2015-02-21 13:28:28 +02:00
|
|
|
use std::fmt::Debug;
|
2014-10-01 07:51:46 -04:00
|
|
|
use std::default::Default;
|
|
|
|
|
|
|
|
struct MyThingy;
|
|
|
|
|
|
|
|
impl Go for MyThingy {
|
2015-01-08 21:54:35 +11:00
|
|
|
fn go(&self, arg: isize) { }
|
2014-10-01 07:51:46 -04:00
|
|
|
}
|
|
|
|
|
2018-12-29 00:11:13 +01:00
|
|
|
impl GoMut for MyThingy {
|
2019-10-26 17:28:02 +02:00
|
|
|
//~^ ERROR E0119
|
2015-01-08 21:54:35 +11:00
|
|
|
fn go_mut(&mut self, arg: isize) { }
|
2014-10-01 07:51:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|