aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2954.rs
blob: 52f7c9140ecc7a7c1c2b83105c123a081c973e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[lang = "sized"]
trait Sized {}

#[lang = "receiver"]
#[unstable(feature = "receiver_trait", issue = "none")]
// #[doc(hidden)]
pub trait Receiver {
    // Empty.
}

#[unstable(feature = "receiver_trait", issue = "none")]
impl<T: ?Sized> Receiver for &T {}

#[unstable(feature = "receiver_trait", issue = "none")]
impl<T: ?Sized> Receiver for &mut T {}