blob: 00005a72093639ff24d9ff587ae71a0e2d5211d3 [file] [log] [blame] [edit]
// Need a different module so we try to build the mir for `test`
// before analyzing `mod foo`.
mod foo {
pub trait Callable {
fn call();
}
impl<V: ?Sized> Callable for () {
//~^ ERROR the type parameter `V` is not constrained by the impl trait, self type, or predicates
fn call() {}
}
}
use foo::*;
fn test() -> impl Sized {
<() as Callable>::call()
//~^ ERROR type annotations needed
}
fn main() {}