-
Notifications
You must be signed in to change notification settings - Fork 996
Closed
Description
#![feature(more_qualified_paths)]
struct Struct {}
trait Trait {
type Type;
}
impl Trait for Struct {
type Type = Self;
}
fn main() {
let _ = <Struct as Trait>::Type {};
}As of current master (7b8303d), cargo run --bin rustfmt -- repro.rs --emit=stdout creates the following diff:
- let _ = <Struct as Trait>::Type {};
+ let _ = Trait::Type {};which fails to compile:
error[E0223]: ambiguous associated type
--> repro.rs:14:13
|
14 | let _ = Trait::Type {};
| ^^^^^^^^^^^ help: use fully-qualified syntax: `<Type as Trait>::Type`Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels