]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-blanket-conflicts-with-specific-cross-crate.rs
CommitLineData
1a4d82fc 1// aux-build:go_trait.rs
223e47cc 2
1a4d82fc
JJ
3extern crate go_trait;
4
5use go_trait::{Go,GoMut};
c34b1796 6use std::fmt::Debug;
1a4d82fc
JJ
7use std::default::Default;
8
9struct MyThingy;
10
11impl Go for MyThingy {
12 fn go(&self, arg: isize) { }
13}
14
0731742a 15impl GoMut for MyThingy {
60c5eb7d 16//~^ ERROR E0119
1a4d82fc 17 fn go_mut(&mut self, arg: isize) { }
223e47cc
LB
18}
19
20fn main() { }