]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
85aaf69f SL |
2 | // Regression test for #20676. Error was that we didn't support |
3 | // UFCS-style calls to a method in `Trait` where `Self` was bound to a | |
4 | // trait object of type `Trait`. See also `ufcs-trait-object.rs`. | |
223e47cc | 5 | |
c34b1796 | 6 | |
85aaf69f | 7 | use std::fmt; |
223e47cc LB |
8 | |
9 | fn main() { | |
dc9dc135 | 10 | let a: &dyn fmt::Debug = &1; |
85aaf69f | 11 | format!("{:?}", a); |
223e47cc | 12 | } |