]> git.lizzy.rs Git - rust.git/blob - src/test/ui/chalkify/lower_env2.rs
fix [type error] for error E0029 and E0277
[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 }