2020-03-03 10:25:03 -06:00
|
|
|
// check-pass
|
2023-01-02 17:18:00 -06:00
|
|
|
// compile-flags: -Z trait-solver=chalk
|
2020-03-03 10:25:03 -06:00
|
|
|
|
|
|
|
#![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() {
|
|
|
|
}
|