mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
19 lines
333 B
Rust
19 lines
333 B
Rust
#![feature(fn_delegation)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Trait {
|
|
fn description(&self) -> &str {}
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
struct F;
|
|
struct S(F);
|
|
|
|
impl S {
|
|
reuse <S as Trait>::description { &self.0 }
|
|
//~^ ERROR mismatched types
|
|
//~| ERROR the trait bound `S: Trait` is not satisfied
|
|
}
|
|
|
|
fn main() {}
|