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
901b340c1f5d208561d4261cc3ee634973b35326
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: 5161ms Template: 12ms
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