fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: no method named `c` found for reference `&dyn Bar` in the current scope 2 --> $DIR/subtrait-method.rs:55:9 3 | 4LL | bar.c(); 5 | ^ help: there is a method with a similar name: `a` 6 | 7 = help: items from traits can only be used if the trait is implemented and in scope 8note: `Baz` defines an item `c`, perhaps you need to implement it 9 --> $DIR/subtrait-method.rs:27:1 10 | 11LL | trait Baz: Bar { 12 | ^^^^^^^^^^^^^^ 13 14error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope 15 --> $DIR/subtrait-method.rs:59:9 16 | 17LL | foo.b(); 18 | ^ help: there is a method with a similar name: `a` 19 | 20 = help: items from traits can only be used if the trait is implemented and in scope 21note: `Bar` defines an item `b`, perhaps you need to implement it 22 --> $DIR/subtrait-method.rs:17:1 23 | 24LL | trait Bar: Foo { 25 | ^^^^^^^^^^^^^^ 26 27error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope 28 --> $DIR/subtrait-method.rs:61:9 29 | 30LL | foo.c(); 31 | ^ help: there is a method with a similar name: `a` 32 | 33 = help: items from traits can only be used if the trait is implemented and in scope 34note: `Baz` defines an item `c`, perhaps you need to implement it 35 --> $DIR/subtrait-method.rs:27:1 36 | 37LL | trait Baz: Bar { 38 | ^^^^^^^^^^^^^^ 39 40error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope 41 --> $DIR/subtrait-method.rs:65:9 42 | 43LL | foo.b(); 44 | ^ help: there is a method with a similar name: `a` 45 | 46 = help: items from traits can only be used if the trait is implemented and in scope 47note: `Bar` defines an item `b`, perhaps you need to implement it 48 --> $DIR/subtrait-method.rs:17:1 49 | 50LL | trait Bar: Foo { 51 | ^^^^^^^^^^^^^^ 52 53error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope 54 --> $DIR/subtrait-method.rs:67:9 55 | 56LL | foo.c(); 57 | ^ help: there is a method with a similar name: `a` 58 | 59 = help: items from traits can only be used if the trait is implemented and in scope 60note: `Baz` defines an item `c`, perhaps you need to implement it 61 --> $DIR/subtrait-method.rs:27:1 62 | 63LL | trait Baz: Bar { 64 | ^^^^^^^^^^^^^^ 65 66error: aborting due to 5 previous errors 67 68For more information about this error, try `rustc --explain E0599`.