mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
7 lines
148 B
Rust
7 lines
148 B
Rust
![]() |
pub trait ValidTrait {}
|
||
|
/// This returns impl trait
|
||
|
pub fn g() -> impl ValidTrait {
|
||
|
error::_in::impl_trait()
|
||
|
//~^ ERROR failed to resolve
|
||
|
}
|