diff options
| author | jumbatm <30644300+jumbatm@users.noreply.github.com> | 2020-08-16 10:26:45 +1000 |
|---|---|---|
| committer | jumbatm <30644300+jumbatm@users.noreply.github.com> | 2020-08-18 02:01:04 +1000 |
| commit | 154b74e8f959581d37d1a1ae860ee1bf7b682f34 (patch) | |
| tree | 3f6f52130a895444e991f918608a05e0de29234c | |
| parent | db753137a14b04886567a1f20768b96feba05594 (diff) | |
| download | rust-154b74e8f959581d37d1a1ae860ee1bf7b682f34.tar.gz rust-154b74e8f959581d37d1a1ae860ee1bf7b682f34.zip | |
Actually introduce a cycle in Reffy test.
| -rw-r--r-- | src/test/ui/lint/clashing-extern-fn-recursion.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/ui/lint/clashing-extern-fn-recursion.rs b/src/test/ui/lint/clashing-extern-fn-recursion.rs index 51bfd203283..ab0fd0a2e70 100644 --- a/src/test/ui/lint/clashing-extern-fn-recursion.rs +++ b/src/test/ui/lint/clashing-extern-fn-recursion.rs @@ -89,28 +89,30 @@ mod ref_recursion_once_removed { mod a { #[repr(C)] struct Reffy1<'a> { - reffy: &'a Reffy1<'a>, + reffy: &'a Reffy2<'a>, } struct Reffy2<'a> { - reffy: &'a Reffy2<'a>, + reffy: &'a Reffy1<'a>, } extern "C" { + #[allow(improper_ctypes)] fn reffy_once_removed(reffy: Reffy1); } } mod b { #[repr(C)] struct Reffy1<'a> { - reffy: &'a Reffy1<'a>, + reffy: &'a Reffy2<'a>, } struct Reffy2<'a> { - reffy: &'a Reffy2<'a>, + reffy: &'a Reffy1<'a>, } extern "C" { + #[allow(improper_ctypes)] fn reffy_once_removed(reffy: Reffy1); } } |
