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

10 lines
200 B
Rust
Raw Normal View History

// 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);
}