mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 18:21:37 +00:00
17 lines
254 B
Rust
17 lines
254 B
Rust
#![feature(type_alias_impl_trait)]
|
|
|
|
type T = impl Sized;
|
|
|
|
struct Foo;
|
|
|
|
impl Into<T> for Foo {
|
|
//~^ ERROR conflicting implementations of trait `Into<_>` for type `Foo`
|
|
fn into(self) -> T {
|
|
Foo
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let _: T = Foo.into();
|
|
}
|