We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
const {Meta,}Sized
1 parent 2cba458 commit 5157ce7Copy full SHA for 5157ce7
src/tools/clippy/tests/ui/def_id_nocore.rs
@@ -1,6 +1,7 @@
1
//@ignore-target: apple
2
3
#![feature(no_core, lang_items)]
4
+#![feature(const_trait_impl)]
5
#![no_core]
6
#![allow(clippy::missing_safety_doc)]
7
@@ -11,9 +12,11 @@ extern "C" {}
11
12
pub trait PointeeSized {}
13
14
#[lang = "meta_sized"]
15
+#[const_trait]
16
pub trait MetaSized: PointeeSized {}
17
18
#[lang = "sized"]
19
20
pub trait Sized: MetaSized {}
21
#[lang = "copy"]
22
pub trait Copy {}
src/tools/clippy/tests/ui/def_id_nocore.stderr
@@ -1,5 +1,5 @@
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
- --> tests/ui/def_id_nocore.rs:33:19
+ --> tests/ui/def_id_nocore.rs:36:19
|
LL | pub fn as_ref(self) -> &'static str {
| ^^^^
0 commit comments