mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +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
|
|
}
|
|
}
|