mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-02 14:07:10 +00:00
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
11 lines
168 B
Rust
11 lines
168 B
Rust
//@ run-pass
|
|
|
|
#![allow(dead_code)]
|
|
#![allow(unreachable_code)]
|
|
|
|
use std::ops::Add;
|
|
|
|
fn wsucc<T:Add<Output=T> + Copy>(n: T) -> T { n + { return n } }
|
|
|
|
pub fn main() { }
|