rust/tests/ui/chalkify/lower_env2.rs
2023-01-11 09:32:08 +00:00

17 lines
249 B
Rust

// 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() {
}