You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Causes tests/ui/trivial-bounds/trivial-bounds-object.rs to fail.
//@ run-pass
// Check that the object bound dyn A + 'a: A is preferred over the
// where clause bound dyn A + 'static: A.
#![allow(unused)]
trait A {
fn test(&self);
}
fn foo(x: &dyn A)
where
dyn A + 'static: A, // Using this bound would lead to a lifetime error.
{
x.test();
}
fn main () {}
The text was updated successfully, but these errors were encountered:
Causes
tests/ui/trivial-bounds/trivial-bounds-object.rs
to fail.The text was updated successfully, but these errors were encountered: