mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-17 06:24:39 +00:00
14 lines
250 B
Rust
14 lines
250 B
Rust
#![feature(return_position_impl_trait_in_trait)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Foo {
|
|
fn bar() -> impl std::fmt::Display;
|
|
}
|
|
|
|
impl Foo for () {
|
|
fn bar() -> () {}
|
|
//~^ ERROR `()` doesn't implement `std::fmt::Display`
|
|
}
|
|
|
|
fn main() {}
|