]> git.lizzy.rs Git - rust.git/blob - tests/source/issue-2506.rs
Remove unnecessary use of Box in `format_function_type`
[rust.git] / tests / source / issue-2506.rs
1 #![feature(dyn_trait)]
2 fn main() {
3     // checks rustfmt doesn't remove dyn
4     trait MyTrait {
5         fn method(&self) -> u64;
6     }
7     fn f1(a: Box<dyn MyTrait>) {}
8
9     // checks if line wrap works correctly
10     trait Very_______________________Long__________________Name_______________________________Trait {
11         fn method(&self) -> u64;
12     }
13
14     fn f2(a: Box<dyn Very_______________________Long__________________Name____________________Trait+ 'static,>) {}
15
16 }