Skip to content

Commit 2f41962

Browse files
committed
Add explanation to 'existential_type_const' test
1 parent 66b2b97 commit 2f41962

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/test/ui/existential_types/existential_type_const.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// check-pass
22

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

src/test/ui/existential_types/existential_type_const.stderr

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

0 commit comments

Comments
 (0)