File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/tools/clippy/tests/ui Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11//@ignore-target: apple
22
33#![ feature( no_core, lang_items) ]
4+ #![ feature( const_trait_impl) ]
45#![ no_core]
56#![ allow( clippy:: missing_safety_doc) ]
67
78#[ link( name = "c" ) ]
89extern "C" { }
910
11+ #[ lang = "pointeesized" ]
12+ pub trait PointeeSized { }
13+
14+ #[ lang = "metasized" ]
15+ #[ const_trait]
16+ pub trait MetaSized : PointeeSized { }
17+
1018#[ lang = "sized" ]
11- pub trait Sized { }
19+ #[ const_trait]
20+ pub trait Sized : MetaSized { }
1221#[ lang = "copy" ]
1322pub trait Copy { }
1423#[ lang = "freeze" ]
Original file line number Diff line number Diff line change 11error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
2- --> tests/ui/def_id_nocore.rs:27 :19
2+ --> tests/ui/def_id_nocore.rs:36 :19
33 |
44LL | pub fn as_ref(self) -> &'static str {
55 | ^^^^
You can’t perform that action at this time.
0 commit comments