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
|
|
|
|
|
|
|
use std::borrow::Borrow;
|
|
|
|
|
|
|
|
trait Foo<'a, 'b, T, U>
|
|
|
|
where
|
|
|
|
T: Borrow<U> + ?Sized,
|
|
|
|
U: ?Sized + 'b,
|
|
|
|
'a: 'b,
|
|
|
|
Box<T>:, // NOTE(#53696) this checks an empty list of bounds.
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|