blob: 9b41a8096c4e50cf927198d66590f14ebb4294fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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() {}
|