mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
16 lines
232 B
Rust
16 lines
232 B
Rust
//@ known-bug: #132320
|
|
//@ compile-flags: -Znext-solver=globally
|
|
|
|
trait Foo {
|
|
type Item;
|
|
fn foo(&mut self);
|
|
}
|
|
|
|
impl Foo for () {
|
|
type Item = Option<()>;
|
|
|
|
fn foo(&mut self) {
|
|
let _ = Self::Item::None;
|
|
}
|
|
}
|