From 6b597cecd31a3da40c6bbeb60c5f42dc3eff2e53 Mon Sep 17 00:00:00 2001 From: thedarkula Date: Mon, 20 Aug 2018 20:02:34 +0100 Subject: Moved issue-53157.rs into src/test/ui/consts/const-eval/ --- src/test/ui/const-eval/issue-53157.rs | 23 ----------------------- src/test/ui/consts/const-eval/issue-53157.rs | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 src/test/ui/const-eval/issue-53157.rs create mode 100644 src/test/ui/consts/const-eval/issue-53157.rs (limited to 'src') diff --git a/src/test/ui/const-eval/issue-53157.rs b/src/test/ui/const-eval/issue-53157.rs deleted file mode 100644 index 900847767e1..00000000000 --- a/src/test/ui/const-eval/issue-53157.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2018 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -// compile-pass - -macro_rules! m { - () => {{ - fn f(_: impl Sized) {} - f - }} -} - -fn main() { - fn f() -> impl Sized {}; - m!()(f()); -} diff --git a/src/test/ui/consts/const-eval/issue-53157.rs b/src/test/ui/consts/const-eval/issue-53157.rs new file mode 100644 index 00000000000..900847767e1 --- /dev/null +++ b/src/test/ui/consts/const-eval/issue-53157.rs @@ -0,0 +1,23 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-pass + +macro_rules! m { + () => {{ + fn f(_: impl Sized) {} + f + }} +} + +fn main() { + fn f() -> impl Sized {}; + m!()(f()); +} -- cgit 1.4.1-3-g733a5