Skip to content

Commit

Permalink
Add explanation to 'existential_type_const' test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Jul 7, 2019
1 parent 66b2b97 commit 2f41962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/test/ui/existential_types/existential_type_const.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// check-pass

#![feature(existential_type)]
// Currently, the `existential_type` feature implicitly
// depends on `impl_trait_in_bindings` in order to work properly.
// Specifically, this line requires `impl_trait_in_bindings` to be enabled:
// https://github.com/rust-lang/rust/blob/481068a707679257e2a738b40987246e0420e787/src/librustc_typeck/check/mod.rs#L856
#![feature(impl_trait_in_bindings)]
//~^ WARN the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
--> $DIR/existential_type_const.rs:4:12
--> $DIR/existential_type_const.rs:8:12
|
LL | #![feature(impl_trait_in_bindings)]
| ^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 2f41962

Please sign in to comment.