☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-3553.rs
☽
☼
gcc/testsuite/rust/compile/issue-3553.rs
code
plain
raw
1
trait Foo {
2
fn f(&self) -> isize;
3
}
4
5
trait Bar: Foo {
6
fn g(&self) -> isize;
7
}
8
9
struct A {
10
x: isize,
11
}
12
13
impl Bar for A {
14
// { dg-error "the trait bound .A: Foo. is not satisfied .E0277." "" { target *-*-* } .-1 }
15
fn g(&self) -> isize {
16
self.f()
17
}
18
}