mirror of https://github.com/rust-lang/rust
14 lines
348 B
Rust
14 lines
348 B
Rust
// Regression test for #80779.
|
|
|
|
pub struct T<'a>(&'a str);
|
|
|
|
pub fn f<'a>(val: T<'a>) -> _ {
|
|
//~^ ERROR: the placeholder `_` is not allowed within types on item signatures for return types
|
|
g(val)
|
|
}
|
|
|
|
pub fn g(_: T<'static>) -> _ {}
|
|
//~^ ERROR: the placeholder `_` is not allowed within types on item signatures for return types
|
|
|
|
fn main() {}
|