3 #![feature(return_position_impl_trait_in_trait)]
4 #![allow(incomplete_features)]
9 fn bar(&self) -> impl Display;
13 fn bar(&self) -> i32 {
18 impl Foo for &'static str {
19 fn bar(&self) -> &'static str {
27 fn bar(&self) -> String {
32 fn foo_generically<T: Foo>(t: T) {
33 println!("{}", t.bar());
37 println!("{}", "Hello, world.".bar());
38 println!("The answer is {}!", 42.bar());