]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/bound_reduction2.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / bound_reduction2.rs
index 0a4cc9b7fe8be4bf40046a9142bcf805d6537722..a15074c35936bb2d10cd04ac5d8b5cb27908c086 100644 (file)
@@ -1,19 +1,18 @@
 #![feature(type_alias_impl_trait)]
 
-fn main() {
-}
+fn main() {}
 
 trait TraitWithAssoc {
     type Assoc;
 }
 
 type Foo<V> = impl Trait<V>;
-//~^ ERROR the trait bound `T: TraitWithAssoc` is not satisfied
 
 trait Trait<U> {}
 
 impl<W> Trait<W> for () {}
 
 fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> {
+    //~^ ERROR non-defining opaque type use in defining scope
     ()
 }