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/proc-macro/issue-50493.rs

14 lines
255 B
Rust
Raw Normal View History

Update tests to use new proc-macro header
2024-11-24 17:37:25 -08:00
//@ proc-macro: issue-50493.rs
typeck: Save the index of private fields Save the index of all fields regardless of their visibility. Problems could occur later when attempting to index fields in error recovery if they are not inserted.
2018-05-12 19:04:44 +00:00
#[macro_use]
extern crate issue_50493;
Calculate visibilities once in resolve Then use them through a query based on resolver outputs
2020-10-17 02:28:11 +03:00
#[derive(Derive)]
typeck: Save the index of private fields Save the index of all fields regardless of their visibility. Problems could occur later when attempting to index fields in error recovery if they are not inserted.
2018-05-12 19:04:44 +00:00
struct Restricted {
Use non-2015 edition paths in tests that do not test for their resolution This allows for testing these tests on editions other than 2015
2025-06-03 10:03:42 +02:00
pub(in crate::restricted) field: usize, //~ ERROR visibilities can only be restricted to ancestor modules
typeck: Save the index of private fields Save the index of all fields regardless of their visibility. Problems could occur later when attempting to index fields in error recovery if they are not inserted.
2018-05-12 19:04:44 +00:00
}
mod restricted {}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3818ms Template: 2ms
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