File tree 2 files changed +11
-2
lines changed
src/tools/clippy/tests/ui
2 files changed +11
-2
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
7
8
#[ link( name = "c" ) ]
8
9
extern "C" { }
9
10
11
+ #[ lang = "pointeesized" ]
12
+ pub trait PointeeSized { }
13
+
14
+ #[ lang = "metasized" ]
15
+ #[ const_trait]
16
+ pub trait MetaSized : PointeeSized { }
17
+
10
18
#[ lang = "sized" ]
11
- pub trait Sized { }
19
+ #[ const_trait]
20
+ pub trait Sized : MetaSized { }
12
21
#[ lang = "copy" ]
13
22
pub trait Copy { }
14
23
#[ lang = "freeze" ]
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:27 :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