Add a can't-nest-rw-arcs test case (xfailed, #3177)

This commit is contained in:
Ben Blum 2012-08-10 20:52:51 -04:00
parent 0eae571389
commit 1b32b13c72

View File

@ -0,0 +1,9 @@
// xfail-test
// error-pattern: instantiating a type parameter with an incompatible type
use std;
import std::arc::rw_arc;
fn main() {
let arc1 = ~rw_arc(true);
let _arc2 = ~rw_arc(arc1);
}