76eb077fb2
Fixes 5151 Details about the qualified path are now passed along so that rustfmt can include them when formatting struct literals.
17 lines
227 B
Rust
17 lines
227 B
Rust
#![feature(more_qualified_paths)]
|
|
|
|
struct Struct {}
|
|
|
|
trait Trait {
|
|
type Type;
|
|
}
|
|
|
|
impl Trait for Struct {
|
|
type Type = Self;
|
|
}
|
|
|
|
fn main() {
|
|
// keep the qualified path details
|
|
let _ = <Struct as Trait>::Type {};
|
|
}
|