diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-24 21:10:16 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-24 21:10:16 +0100 |
commit | ef9cea945d5767e7c60d5931a7649a73caea23ad (patch) | |
tree | 8a2cdf4db86466eca026b32a52822092248e95ba /crates/hir_def/src/nameres | |
parent | ed09bd3cc6a37d7d22038adf7ff815f0188a9949 (diff) | |
parent | f3ac19e8cd8be78f1eb96893482edac038739bb1 (diff) |
Merge #5861
5861: Support extern types r=matklad a=jonas-schievink
This is a currently unstable feature tracked at https://github.com/rust-lang/rust/issues/43467
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def/src/nameres')
-rw-r--r-- | crates/hir_def/src/nameres/tests.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_def/src/nameres/tests.rs b/crates/hir_def/src/nameres/tests.rs index 8aaf7a158..5ca30dac9 100644 --- a/crates/hir_def/src/nameres/tests.rs +++ b/crates/hir_def/src/nameres/tests.rs | |||
@@ -46,6 +46,7 @@ union U { to_be: bool, not_to_be: u8 } | |||
46 | enum E { V } | 46 | enum E { V } |
47 | 47 | ||
48 | extern { | 48 | extern { |
49 | type Ext; | ||
49 | static EXT: u8; | 50 | static EXT: u8; |
50 | fn ext(); | 51 | fn ext(); |
51 | } | 52 | } |
@@ -65,6 +66,7 @@ extern { | |||
65 | Baz: t v | 66 | Baz: t v |
66 | E: t | 67 | E: t |
67 | EXT: v | 68 | EXT: v |
69 | Ext: t | ||
68 | U: t | 70 | U: t |
69 | ext: v | 71 | ext: v |
70 | "#]], | 72 | "#]], |