]> git.lizzy.rs Git - rust.git/blob - src/test/ui/chalkify/lower_env2.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / src / test / ui / chalkify / lower_env2.rs
1 // check-pass
2 // compile-flags: -Z chalk
3
4 #![allow(dead_code)]
5
6 trait Foo { }
7
8 struct S<'a, T: ?Sized> where T: Foo {
9     data: &'a T,
10 }
11
12 fn bar<T: Foo>(_x: S<'_, T>) { // note that we have an implicit `T: Sized` bound
13 }
14
15 fn main() {
16 }