mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 20:34:06 +00:00
update test
This commit is contained in:
parent
1add837c91
commit
87ba8d24d6
@ -15,11 +15,12 @@ pub trait Copy {}
|
|||||||
pub unsafe trait Freeze {}
|
pub unsafe trait Freeze {}
|
||||||
|
|
||||||
#[lang = "start"]
|
#[lang = "start"]
|
||||||
#[start]
|
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize {
|
||||||
fn start(_argc: isize, _argv: *const *const u8) -> isize {
|
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn main() {}
|
||||||
|
|
||||||
struct A;
|
struct A;
|
||||||
|
|
||||||
impl A {
|
impl A {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
|
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
|
||||||
--> $DIR/def_id_nocore.rs:26:19
|
--> $DIR/def_id_nocore.rs:27:19
|
||||||
|
|
|
|
||||||
LL | pub fn as_ref(self) -> &'static str {
|
LL | pub fn as_ref(self) -> &'static str {
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
Loading…
Reference in New Issue
Block a user