]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/issue-60407.min_tait.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-60407.min_tait.stderr
diff --git a/src/test/ui/type-alias-impl-trait/issue-60407.min_tait.stderr b/src/test/ui/type-alias-impl-trait/issue-60407.min_tait.stderr
new file mode 100644 (file)
index 0000000..edb8141
--- /dev/null
@@ -0,0 +1,24 @@
+error[E0658]: type alias impl trait is not permitted here
+  --> $DIR/issue-60407.rs:9:39
+   |
+LL | static mut TEST: Option<Debuggable> = None;
+   |                                       ^^^^
+   |
+   = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
+   = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
+
+error: concrete type differs from previous defining opaque type use
+  --> $DIR/issue-60407.rs:16:1
+   |
+LL | fn foo() -> Debuggable {
+   | ^^^^^^^^^^^^^^^^^^^^^^ expected `[type error]`, got `u32`
+   |
+note: previous use here
+  --> $DIR/issue-60407.rs:9:1
+   |
+LL | static mut TEST: Option<Debuggable> = None;
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0658`.