Skip to content

Commit 4cffa9b

Browse files
committed
convert coherence-cow to use revisions
1 parent c5bdc35 commit 4cffa9b

File tree

3 files changed

+11
-52
lines changed

3 files changed

+11
-52
lines changed

src/test/compile-fail/coherence-cow-2.rs

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/test/compile-fail/coherence-cow-no-cover.rs

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/test/compile-fail/coherence-cow-1.rs renamed to src/test/compile-fail/coherence-cow.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// revisions: a b c
12+
1113
// aux-build:coherence_lib.rs
1214

1315
// pretty-expanded FIXME #23616
@@ -22,7 +24,14 @@ use lib::{Remote,Pair};
2224

2325
pub struct Cover<T>(T);
2426

25-
impl<T> Remote for Pair<T,Cover<T>> { }
26-
//~^ ERROR E0210
27+
#[cfg(a)]
28+
impl<T> Remote for Pair<T,Cover<T>> { } //[a]~ ERROR E0210
29+
30+
#[cfg(b)]
31+
impl<T> Remote for Pair<Cover<T>,T> { } //[b]~ ERROR E0210
32+
33+
#[cfg(c)]
34+
impl<T,U> Remote for Pair<Cover<T>,U> { }
35+
//[c]~^ ERROR type parameter `T` must be used as the type parameter for some local type
2736

2837
fn main() { }

0 commit comments

Comments
 (0)