Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
15
tests/ui/impl-trait/impl-fn-predefined-lifetimes.rs
Normal file
15
tests/ui/impl-trait/impl-fn-predefined-lifetimes.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
#![feature(impl_trait_in_fn_trait_return)]
|
||||
use std::fmt::Debug;
|
||||
|
||||
fn a<'a>() -> impl Fn(&'a u8) -> (impl Debug + '_) {
|
||||
//~^ ERROR cannot resolve opaque type
|
||||
|
||||
|x| x
|
||||
//~^ ERROR concrete type differs from previous defining opaque type use
|
||||
}
|
||||
|
||||
fn _b<'a>() -> impl Fn(&'a u8) -> (impl Debug + 'a) {
|
||||
a()
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue