blob: af552ac0c5e71ac1bee15403e7ef70225b961395 [file] [log] [blame]
#![allow(incomplete_features)]
#![feature(const_trait_impl, const_try, try_trait_v2)]
use std::ops::FromResidual;
impl<T> const FromResidual for T {
//~^ ERROR type parameter `T` must be used as the type parameter for some local type
fn from_residual(t: T) -> _ {
//~^ ERROR the placeholder `_` is not allowed
t
}
}
fn main() {}