blob: 1624f6b7742b0d88a3598f60c800eb9d9ade15b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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() {}
|