aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3031.rs
blob: 33f5bf07471968c4f88e97396c473839b1e61858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(no_core)]
#![feature(lang_items)]
#![no_core]

#[lang = "sized"]
trait Sized {}

trait A<T: ?Sized> {}

struct Cell<X> {
    // { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }
    x: X,
}

impl<T, U> A<Cell<U>> for Cell<T> where T: A<U> {}