summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-43923.rs
blob: ad35a668554bd1c2b7cc1ece57d2f728e9901457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
struct A<T: ?Sized> { ptr: T }

fn foo<T>(x: &A<[T]>) {}

fn main() {
    let a = foo;
    let b = A { ptr: [a, a, a] };
    a(&A { ptr: [()] });
}