Closed
Description
Repro as of current master (2da4f63):
$ echo 'extern "Rust" { type T = crate::U; }' | cargo run --bin rustfmt
extern "Rust" {
type T;
}
The = crate::U
is silently dropped.
Similarly this test case in the compiler test suite gets destroyed.
- type A: Ord;
- type A<'a> where 'a: 'static;
- type A<T: Ord> where T: 'static;
- type A = u8;
- type A<'a: 'static, T: Ord + 'static>: Eq + PartialEq where T: 'static + Copy = Vec<u8>;
+ type A;
+ type A;
+ type A;
+ type A;
+ type A;
Relevant to me because I need this syntax for dtolnay/cxx#99.