mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
11 lines
183 B
Rust
11 lines
183 B
Rust
|
//@ known-bug: #119717
|
||
|
#![feature(const_trait_impl, effects)]
|
||
|
|
||
|
use std::ops::{FromResidual, Try};
|
||
|
|
||
|
impl const FromResidual for T {
|
||
|
fn from_residual(t: T) -> _ {
|
||
|
t
|
||
|
}
|
||
|
}
|