rust/tests/source/issue-4244.rs
WhizSid 6455e9de0e Fixed 'Comment removed between type name and =' issue (#4448)
* Fixed Comment removed between type name and = issue

* Fixed where clause issue and pass the full span

* has_where condition inline

* Fixed indentation error on where clause

* Removed tmp file
2020-11-29 13:26:58 -06:00

17 lines
285 B
Rust

pub struct SS {}
pub type A /* A Comment */ = SS;
pub type B // Comment
// B
= SS;
pub type C
/* Comment C */ = SS;
pub trait D <T> {
type E /* Comment E */ = SS;
}
type F<'a: 'static, T: Ord + 'static>: Eq + PartialEq where T: 'static + Copy /* x */ = Vec<u8>;