rust/tests/crashes/126646.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
307 B
Rust
Raw Normal View History

2024-06-23 11:14:44 -05:00
//@ known-bug: rust-lang/rust#126646
mod foo {
pub trait Callable {
type Output;
fn call() -> Self::Output;
}
impl<'a, V: ?Sized> Callable for &'a () {
type Output = ();
}
}
use foo::*;
fn test<'a>() -> impl Sized {
<&'a () as Callable>::call()
}
fn main() {}