]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/in-trait/default-body-type-err.rs
Auto merge of #106742 - compiler-errors:new-solver-make-it-not-ice, r=lcnr
[rust.git] / tests / ui / impl-trait / in-trait / default-body-type-err.rs
1 #![allow(incomplete_features)]
2 #![feature(return_position_impl_trait_in_trait)]
3
4 use std::ops::Deref;
5
6 pub trait Foo {
7     fn lol(&self) -> impl Deref<Target = String> {
8         //~^ type mismatch resolving `<&i32 as Deref>::Target == String`
9         &1i32
10     }
11 }
12
13 fn main() {}