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 1
1
//@ignore-target: apple
2
2
3
3
#![ feature( no_core, lang_items) ]
4
+ #![ feature( const_trait_impl) ]
4
5
#![ no_core]
5
6
#![ allow( clippy:: missing_safety_doc) ]
6
7
@@ -11,9 +12,11 @@ extern "C" {}
11
12
pub trait PointeeSized { }
12
13
13
14
#[ lang = "meta_sized" ]
15
+ #[ const_trait]
14
16
pub trait MetaSized : PointeeSized { }
15
17
16
18
#[ lang = "sized" ]
19
+ #[ const_trait]
17
20
pub trait Sized : MetaSized { }
18
21
#[ lang = "copy" ]
19
22
pub trait Copy { }
Original file line number Diff line number Diff line change 1
1
error: 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
3
3
|
4
4
LL | pub fn as_ref(self) -> &'static str {
5
5
| ^^^^
You can’t perform that action at this time.
0 commit comments