2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-02-25 11:21:15 -06:00
|
|
|
// Regression test for issue #22655: This test should not lead to
|
|
|
|
// infinite recursion.
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-25 11:21:15 -06:00
|
|
|
unsafe impl<T: Send + ?Sized> Send for Unique<T> { }
|
|
|
|
|
|
|
|
pub struct Unique<T:?Sized> {
|
|
|
|
pointer: *const T,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Node<V> {
|
|
|
|
vals: V,
|
|
|
|
edges: Unique<Node<V>>,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn is_send<T: Send>() {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
is_send::<Node<&'static ()>>();
|
|
|
|
}
|