Add explanation to 'existential_type_const' test
This commit is contained in:
parent
66b2b97e07
commit
2f41962053
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue