mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +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
|
|
}
|
|
}
|