blob: 4a4d759ef2e96907527623d0b8e5049061853eb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { dg-options "-w" }
#[lang = "sized"]
trait Sized {}
trait Printable {
fn print(&self);
}
struct Foo;
impl Printable for Foo {
fn print(&self) {}
}
fn take_printable(_: impl Printable) {}
|