2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-01-13 09:17:07 -05: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 13:13:15 -07:00
|
|
|
|
2015-01-13 09:17:07 -05:00
|
|
|
use std::fmt;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2019-05-28 14:47:21 -04:00
|
|
|
let a: &dyn fmt::Debug = &1;
|
2024-07-04 16:47:20 +02:00
|
|
|
let _ = format!("{:?}", a);
|
2015-01-13 09:17:07 -05:00
|
|
|
}
|