2012-08-10 19:52:51 -05:00
|
|
|
// xfail-test
|
|
|
|
// error-pattern: instantiating a type parameter with an incompatible type
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2012-09-05 14:32:05 -05:00
|
|
|
use std::arc::rw_arc;
|
2012-08-10 19:52:51 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let arc1 = ~rw_arc(true);
|
|
|
|
let _arc2 = ~rw_arc(arc1);
|
|
|
|
}
|