File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/tools/clippy/tests/ui Expand file tree Collapse file tree 2 files changed +4
-1
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
@@ -11,9 +12,11 @@ extern "C" {}
1112pub trait PointeeSized { }
1213
1314#[ lang = "meta_sized" ]
15+ #[ const_trait]
1416pub trait MetaSized : PointeeSized { }
1517
1618#[ lang = "sized" ]
19+ #[ const_trait]
1720pub trait Sized : MetaSized { }
1821#[ lang = "copy" ]
1922pub trait Copy { }
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:33 :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