// Check that `Self` appearing in a phantom fn does not make a trait not object safe. //@ build-pass (FIXME(62277): could be check-pass?) #![allow(dead_code)] trait Baz { } trait Bar { } fn make_bar>(t: &T) -> &dyn Bar { t } fn make_baz(t: &T) -> &dyn Baz { t } fn main() { }