Hide some lints which are not quite right the way they are reported to the user
This commit is contained in:
parent
1398572403
commit
ef5fba0067
2 changed files with 117 additions and 11 deletions
24
src/test/ui/const-eval/const_prop_errors.rs
Normal file
24
src/test/ui/const-eval/const_prop_errors.rs
Normal file
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue