Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/privacy/issue-11593.rs

11 lines
167 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ aux-build:private-trait-xc.rs
Disallow implementation of cross-crate priv traits Turns out we were just forgetting to encode the privacy for trais, and everything without privacy defaults to public! Closes #11593
2014-01-17 15:23:19 -08:00
extern mod => extern crate This was previously implemented, and it just needed a snapshot to go through
2014-02-14 10:10:06 -08:00
extern crate private_trait_xc;
Disallow implementation of cross-crate priv traits Turns out we were just forgetting to encode the privacy for trais, and everything without privacy defaults to public! Closes #11593
2014-01-17 15:23:19 -08:00
struct Bar;
impl private_trait_xc::Foo for Bar {}
//~^ ERROR: trait `Foo` is private
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5437ms Template: 4ms
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