Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/statics/issue-17718-static-sync.rs

13 lines
214 B
Rust
Raw Normal View History

introduce `negative_impls` feature gate and document They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
2020-01-09 05:56:38 -05:00
#![feature(negative_impls)]
test: Convert statics to constants Additionally, add lots of tests for new functionality around statics and `static mut`.
2014-10-06 21:16:35 -07:00
Don't use NoSend/NoSync in tests
2015-01-11 13:14:39 +01:00
use std::marker::Sync;
struct Foo;
impl !Sync for Foo {}
test: Convert statics to constants Additionally, add lots of tests for new functionality around statics and `static mut`.
2014-10-06 21:16:35 -07:00
Update compile fail tests to use usize.
2015-01-08 22:02:42 +11:00
static FOO: usize = 3;
Don't use NoSend/NoSync in tests
2015-01-11 13:14:39 +01:00
static BAR: Foo = Foo;
Reword E0044 and message for `!Send` types - Reword E0044 help. - Change error message for types that don't implement `Send`
2018-02-10 21:01:49 -08:00
//~^ ERROR: `Foo` cannot be shared between threads safely [E0277]
test: Convert statics to constants Additionally, add lots of tests for new functionality around statics and `static mut`.
2014-10-06 21:16:35 -07:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5603ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API