2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-01-13 08:17:07 -06:00
|
|
|
// Regression test for #20676. Error was that we didn't support
|
|
|
|
// UFCS-style calls to a method in `Trait` where `Self` was bound to a
|
|
|
|
// trait object of type `Trait`. See also `ufcs-trait-object.rs`.
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2015-01-13 08:17:07 -06:00
|
|
|
use std::fmt;
|
|
|
|
|
|
|
|
fn main() {
|
2019-05-28 13:47:21 -05:00
|
|
|
let a: &dyn fmt::Debug = &1;
|
2015-01-13 08:17:07 -06:00
|
|
|
format!("{:?}", a);
|
|
|
|
}
|