summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/lower_env2.rs
blob: 7d4f81f12eaf5be4a033e20d789ff13223864897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass
// compile-flags: -Z trait-solver=chalk

#![allow(dead_code)]

trait Foo { }

struct S<'a, T: ?Sized> where T: Foo {
    data: &'a T,
}

fn bar<T: Foo>(_x: S<'_, T>) { // note that we have an implicit `T: Sized` bound
}

fn main() {
}