We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
{Meta,Pointee,}Sized
1 parent ae44a70 commit 2ed26b2Copy full SHA for 2ed26b2
src/tools/clippy/tests/ui/def_id_nocore.rs
@@ -7,8 +7,14 @@
7
#[link(name = "c")]
8
extern "C" {}
9
10
+#[lang = "pointee_sized"]
11
+pub trait PointeeSized {}
12
+
13
+#[lang = "meta_sized"]
14
+pub trait MetaSized: PointeeSized {}
15
16
#[lang = "sized"]
-pub trait Sized {}
17
+pub trait Sized: MetaSized {}
18
#[lang = "copy"]
19
pub trait Copy {}
20
#[lang = "freeze"]
src/tools/clippy/tests/ui/def_id_nocore.stderr
@@ -1,5 +1,5 @@
1
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
2
- --> tests/ui/def_id_nocore.rs:27:19
+ --> tests/ui/def_id_nocore.rs:33:19
3
|
4
LL | pub fn as_ref(self) -> &'static str {
5
| ^^^^
0 commit comments