rust/src/test/compile-fail/arc-cant-nest-rw-arc-3177.rs

10 lines
197 B
Rust
Raw Normal View History

// xfail-test
// error-pattern: instantiating a type parameter with an incompatible type
use std;
2012-09-05 14:32:05 -05:00
use std::arc::rw_arc;
fn main() {
let arc1 = ~rw_arc(true);
let _arc2 = ~rw_arc(arc1);
}