about summary refs log tree commit diff
path: root/tests/crashes/140099.rs
blob: fca129100555dd4b43e942f76864875b269563f3 (plain)
1
2
3
4
5
6
//@ known-bug: #140099
struct a;
impl From for a where for<'any> &'any mut (): Clone {}
fn b() -> Result<(), std::convert::Infallible> {
    || -> Result<_, a> { b()? }
}