mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
25 lines
664 B
Rust
25 lines
664 B
Rust
#![deny(unused_attributes)]
|
|
#![feature(linkage)]
|
|
#![feature(fn_align)]
|
|
|
|
trait Test {
|
|
#[cold]
|
|
//~^ ERROR cannot be used on required trait methods [unused_attributes]
|
|
//~| WARN previously accepted
|
|
fn method1(&self);
|
|
#[link_section = "__TEXT,__text"]
|
|
//~^ ERROR cannot be used on required trait methods [unused_attributes]
|
|
//~| WARN previously accepted
|
|
fn method2(&self);
|
|
#[linkage = "common"]
|
|
//~^ ERROR cannot be used on required trait methods [unused_attributes]
|
|
//~| WARN previously accepted
|
|
fn method3(&self);
|
|
#[track_caller]
|
|
fn method4(&self);
|
|
#[rustc_align(1)]
|
|
fn method5(&self);
|
|
}
|
|
|
|
fn main() {}
|