diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-25 13:05:05 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-25 13:05:05 +0200 |
| commit | ef5fba0067d35bf287476401671111c1f189e4bc (patch) | |
| tree | 70a724c775bf8788fec7246f5d504dd81f30997c /src/test/ui/const-eval/const_prop_errors.rs | |
| parent | 13985724033467ab86da9136c43fe242092b294e (diff) | |
Hide some lints which are not quite right the way they are reported to the user
Diffstat (limited to 'src/test/ui/const-eval/const_prop_errors.rs')
| -rw-r--r-- | src/test/ui/const-eval/const_prop_errors.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/ui/const-eval/const_prop_errors.rs b/src/test/ui/const-eval/const_prop_errors.rs new file mode 100644 index 00000000000..bea4fb76ed1 --- /dev/null +++ b/src/test/ui/const-eval/const_prop_errors.rs @@ -0,0 +1,24 @@ +// 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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-pass + +pub trait Foo { + fn foo(self) -> u32; +} + +impl<T> Foo for T { + fn foo(self) -> u32 { + fn bar<T>() { loop {} } + bar::<T> as u32 + } +} + +fn main() {} |
