summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.rs
blob: de7966c66b057f085fa0bcbfb1c5ac16ede8c4ae (plain)
1
2
3
4
5
trait Foo {
    fn bar() -> impl Sized; //~ ERROR `impl Trait` only allowed in function and inherent method return types, not in trait method return
}

fn main() {}