mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 09:36:40 +00:00
22 lines
367 B
Rust
22 lines
367 B
Rust
// Regression test for #107747: methods from trait alias supertraits were brought into scope
|
|
//
|
|
//@ check-pass
|
|
|
|
#![feature(trait_alias)]
|
|
|
|
use std::fmt;
|
|
|
|
trait Foo: fmt::Debug {}
|
|
trait Bar = Foo;
|
|
|
|
#[derive(Debug)]
|
|
struct Qux(bool);
|
|
|
|
impl fmt::Display for Qux {
|
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
self.0.fmt(f)
|
|
}
|
|
}
|
|
|
|
fn main() {}
|